Technical requirements
The code in this chapter is based on Xcode 12 and iOS 14, but all the recipes support iOS 13 as well.
You can find the code in the book's GitHub repo at https://github.com/PacktPublishing/SwiftUI-Cookbook/tree/master/Chapter06%20-%20Drawing%20with%20SwiftUI.