2

Supporting SwiftUI with Core Graphics [SUBSCRIBER]

 1 year ago
source link: https://www.kodeco.com/31558295-supporting-swiftui-with-core-graphics
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Supporting SwiftUI with Core GraphicsGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupShapeGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroup

Kodeco is the new raywenderlich.com. Read about our changes here.

Kodeco is the new raywenderlich.com

We're excited to introduce our new name, and our new look and feel, with all of the same content you know and love!

Read the full story

Black Friday — Promotion

Get complete and immediate access to a Pro Yearly subscription with all benefits for just $399 for your first year — or lock in for two years for $599

Home Supporting SwiftUI with Core Graphics
domain-ios-39175aafb28a4555195f2ea693a6312b62462420ca3eafe87b1ced8c3cdca816.svg
original.png
media-course-ios-83c2c1486f5cd8c1ff9a1b67c9bfb6e2c967d003b40ef5a8c23917f20ddbbc20.svg
Pro

Supporting SwiftUI with Core Graphics

Nov 22 2022, Swift 5.5, iOS 15, Xcode 13

Learn how to support SwiftUI drawing with Core Graphics! This course picks up where our Drawing in iOS with SwiftUI course left off. You’ll enhance the Open Mind app with help from UIKit and Core Graphics. You’ll learn how to integrate UIKit views with SwiftUI, use UIKit touch methods to capture Apple Pencil drawing, and make the whole drawing view a UIControl that we can plug into any of our future SwiftUI apps.

By Catie Catterwaul.

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.

Covered concepts

  • Core Graphics
  • SwiftUI Graphics
  • Apple Pencil

Part 1: Supporting SwiftUI with Core Graphics

Review how the SwiftUI paradigm differs from UIKit. Learn how a view is rendered, and discover Core Animation layers and Core Graphics contexts.

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.

Learn how to use Pencil for custom drawing and draw smooth lines with thickness dependent on pressure.

Understand the extra features that drawing with Pencil gives you. Use the tilt of the pencil to change from drawing to shading.

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.

Instructors

Contributors

Over 300 content creators. Join our team.

All videos. All books.
One low price.

Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalogue of 50+ books and 4,000+ videos.

Learn more

The largest and most up-to-date collection of courses and books on iOS, Swift, Android, Kotlin, Flutter, Dart, Server-Side Swift, Unity, and more!

© 2022 Kodeco Inc


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK