Swift Playground to demonstrate creating a view in iOS with different rounded corners

CustomRoundedCorners

A Swift Playground to demonstrate creating a view in iOS with different rounded corners

This Playground displays several different methods of adding rounded corners to a UIView for an iOS app. The first two examples display methods to round selected corners which have the same radius. The third example uses a UIBezierPath to draw a custom mask to provide for different radii for different corners.

Example 1

Example 2

Example 3

GitHub

View Github