Не могу обрезать cell.imageView? в кружок.
Я был на многих форумах и ничего не нашел.
Я использую tableView со стандартной ячейкой (нестандартно).
Мой код:
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "channelCell", for: indexPath)
cell.accessoryType = .disclosureIndicator
cell.imageView?.layer.cornerRadius = cell.frame.size.height / 2
cell.imageView?.clipsToBounds = true
cell.imageView?.kf.setImage(with: URL(string: channels[indexPath.row].userUrlImage))
return cell
}
Я получаю это изображение, проверьте изображение на втором пользователе
![enter image description here](https://i.stack.imgur.com/lmBPM.jpg)
UPD.
![enter image description here](https://i.stack.imgur.com/T5VIF.jpg)