How do I make an UIImage/-View with rounded corners CGRect (Swift)

前端 未结 8 2523
你的背包
你的背包 2020-12-13 01:47

How do I make a UIImageView with rounded corners on a Swift iOS Playground?
Inside it needs to be filled with a color.

8条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-13 02:13

    Setting layer.cornerRadius = 10 at User Defined Runtime Attributes section on the Identity inspector works even on repeatable elements like table cells.

提交回复
热议问题