Drawing Custom Views
Note: In this episode, you may see the now-obsolete #if DEBUG macro, which used to be utilised for previews to run in the canvas. This is now no longer necessary, and you can safely ignore it. We’ve removed it from the project for convenience as well.
Drawing your own custom views and shapes is so much fun with SwiftUI! Learn how to do so using the device's screen dimensions to create scalable results.