In this video we will see a coding example with SwiftUI. We will make a little photo editor application and use sliders to change the image brightness and add a blur effect. We will create a subview.
By the end of this video you will understand when to use @State and @Binding. It is also good to understand why for some cases it is enough to declare you properties as let constants.
Overview
00:00 introduction
04:52 @State property
11:06 creating subviews
12:20 using @Binding with property
15:21 let property
23:20 wrap up
⬇️ you can find the image here: github.com/gahntpo/swiftui-pr...
If you liked what you learned and you want to see more, check out one of my courses!
👨💻 my SwiftUI course school.swiftyplace.com/course...
👨💻 my Core Data and SwiftUI course school.swiftyplace.com/course...
👩🏻💻 Combine course school.swiftyplace.com/course...
#SwiftUI #iOSDevelopment
Негізгі бет SwiftUI tutorial for Beginners - @State vs @Binding - How to pass data between views?
Пікірлер: 32