Who is this for?
This course is for iOS developers who are familiar with Swift and SwiftUI fundamentals, and would like to enhance their SwiftUI graphics by integrating with Core Graphics and UIKit.
- Core Graphics
- SwiftUI Graphics
- Apple Pencil
Part 1: Supporting SwiftUI with Core Graphics
Anatomy of a View
Review how the SwiftUI paradigm differs from UIKit. Learn how a view is rendered, and discover Core Animation layers and Core Graphics contexts.
Create a CGImage
Examine the View Hierarchy Debugger in Xcode. Then create a Core Graphics context, draw into it and extract an image.
Upgrade a SwiftUI drawing pad to UIKit. Examine the app architecture and understand how to insert UIKit views in a SwiftUI app.
Capture touches and turn them into drawing strokes with UIKit and Core Graphics.
Drawing with Pencil
Learn how to use Pencil for custom drawing and draw smooth lines with thickness dependent on pressure.
Shading with Pencil
Understand the extra features that drawing with Pencil gives you. Use the tilt of the pencil to change from drawing to shading.
Create a Thumbnail
Learn to extract a sketch from the drawing pad into an image, create a thumbnail, and display it on a mind map cell.
Go low-level into Core Graphics and examine individual pixels. Learn how to retrieve the pixel color and switch the drawing color to this color.