You could use the Path object to draw a shape directly into your view. But you will lose out on a lot of the benefits that conforming to the Shape protocol has to offer.

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.