When creating a shape, you are given a rectangle to draw within (CGRect).

You can easily reference points within this rectangle when specifying points.

The SwiftUI Shapes Live Series

Follow along in this series if you want to learn how to create shapes to enhance your UI in your apps.

Already enrolled?
Sign in to continue learning.