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

前端 未结 8 2525
你的背包
你的背包 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条回答
  •  忘掉有多难
    2020-12-13 02:10

    Swift 3.0, 4.0

    If you want to use the storyboard. I applied this and make sure that "Clip to bounds" is enable.

提交回复
热议问题