DevTechie
Published in

DevTechie

New in SwiftUI 3: Canvas

SwiftUI 3 introduced a brand spanking new view called ✨ Canvas ✨ for rich and dynamic 2D graphics drawing.

Canvas view passes GraphicsContext and Size values to it closure which can be used to perform immediate mode drawing. Canvas can draw path, image, or complete SwiftUI views inside it.

Let’s take a look at Path drawing inside canvas:

struct SimpleCanvasExample…

--

--

--

DevTechie.com is all about sharing knowledge by practical means. We focus on solving real world challenges via code.

Recommended from Medium

Goodbye, Target Actions. Hello, UIActions

Airbnb’s Page Performance Score on iOS

XCTests: Actually Writing Them

Modular Apps with a Tuist — Part 3 — Backpack UI

Best Cydia alternative

User Authentication with Face ID/Touch ID in SwiftUI

New in SwiftUI 3: SwiftUI 3 Animation in iOS 15

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
DevTechie

DevTechie

DevTechie creates tutorials at www.youtube.com/c/DevTechie. Also video courses on: www.udemy.com/user/devtechie/ and courses on: www.patreon.com/DevTechieInc

More from Medium

Disclosure Group in SwiftUI

Presenting The Preferences Window On macOS Using SwiftUI

Working with GroupBox in SwiftUI

Build the Dollar Game Using SwiftUI