Follow along at https://www.hackingwithswift.com/100/swiftui/44.
This day covers Part Two of Project 9: Drawing
in the 100 Days of SwiftUI Challenge. (Project 9 files can be found in the directory for Part One.)
It focuses on several specific topics:
- Transforming shapes using CGAffineTransform and even-odd fills
- Creative borders and fills using ImagePaint
- Enabling high-performance Metal rendering with drawingGroup()
Regarding the last point, I love how activating Metal via the drawingGroup
modifier
couldn't be more straightforward. But it's quite the Mjölnir. Use it sparingly -- and only as needed.