In this tutorial, I am making a drawing app with SwiftUI features that are available for iOS 15 like the canvas view. I will create the model to store the line information including the line's points, line width and color.
I am using a Drag gesture to get the information where to draw the lines.
Last a delete, undo and redo functionality is included.
Overview
0:00 introduction
02:42 Canvas for drawing test, shapes and images
10:17 drawing and gesture
14:11 DragGesture
18:34 change color and line width
22:11 how to draw smoother lines
31:27 undo / redo
37:10 Shapes instead of Canvas
40: 44 wrap up
Github repository: [ Ссылка ]
If you liked what you learned and you want to see more, check out one of my courses!
👨💻 my SwiftUI course [ Ссылка ]
👨💻 my Core Data and SwiftUI course [ Ссылка ]
👩🏻💻 Combine course [ Ссылка ]
#SwiftUI #MakeADrawingApp #WriteYourFirstApp
Ещё видео!