100-days-of-swiftui-and-com.../day-044
CypherPoet 4b1ddd9326 Complete Day 45 2019-11-07 19:58:08 -06:00
..
README.md Complete Day 45 2019-11-07 19:58:08 -06:00

README.md

Day 44: Project 9: Drawing (Part Two)

Follow along at https://www.hackingwithswift.com/100/swiftui/44.


📒 Field Notes

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.


📸 Screenshots