Creating 2D Custom Graphics using SwiftUI Canvas View | SwiftUI 3.0

preview_player
Показать описание
Canvas View introduces in SwiftUI 3. It helps to draw 2D Graphics inside SwiftUI View. Canvas View provides a native solution for SwiftUI developers it encapsulates context and size inside it.

Context or Graphics Context acts as a pencil for the developer it helps to carve out shapes inside the View.

While the size provides the view bound of the Canvas View, size consists of the Width and Height of the frame.

In this video we gonna take a Look at how to draw 2D Graphics in SwiftUI using Canvas View.

Checkout full playlist :

Timeline
Intro (00:00)
Introduction to Canvas View (0:28)
Create a Ellipse using Canvas View (1:08)
Create a Triangle using Canvas View (2:58)
Create a Rounded Rectangle using Canvas View (4:39)
Create a Arc using Canvas View (5:21)

Support us on

Follow us on
Рекомендации по теме
Комментарии
Автор

Thank you for posting this. I was looking for a simple demo of how to use the Canvas view and yours is very clear.

imdanoc
Автор

Good information but painful to listen to.

pitmanra
welcome to shbcf.ru