I am using UITableView, and I have one UIImageView inside my UITableViewCell, so it set the cornerRadius of the UIImageView, but it doesn't work. How can I fix it?
that is my function to set the content of the cell, and I called it in tableviewdelegate of cellForRowAtIndexPath:
func setContentWithUser(#user: UserMapper) -> Void {
if let avatarUrl = user.avatar{
self.avatarImageView.layer.cornerRadius = 3
loadImage(url: avatarUrl, { (image) -> Void in
self.avatarImageView.image = image
})
}
nameLabel.text = user.name ?? "Unknown"
titleLabel.text = "blabla"
hospitalLabel.text = "blabla"
aboutLabel.text = "blabla""
}