Hi i am searching a clean solution without overwriting drawRect or stuff like that to create a UIView with Rounded corners on the Top of the
drawRect
UIView
For iOS11 and later you can use the view's layer property:
@property CACornerMask maskedCorners
That defines which of the four corners receives the masking when using cornerRadius property. Defaults to all four corners. (Apple doc)