Suggested approach: If you’re using UIKit then you’d use the
cornerRadius property of your view’s
layer – something like
myView.layer.cornerRadius = 10 ought to be enough to start. If you’re using SwiftUI, then the
cornerRadius() modifier is your friend.
Estimated difficulty: Easy
UIColorhas values outside 0 to 1?
Link copied to your pasteboard.