Skip to content

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

Notifications You must be signed in to change notification settings

edenwaith/CustomRoundedCorners

Repository files navigation

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

First example of a photo with rounded corners on the top.

Example 2

Second example of a photo with rounded corners on the right.

Example 3

Third example of a photo with rounded corners of different radii on the top.

SwiftUI

A SwiftUI example is available at https://gist.github.com/edenwaith/16b85fb66ad732fce8738d759e16a0fe to demonstrate similar concepts to apply different rounded corners to an Image.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages