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: https://github.com/gahntpo/swiftui-property-wrapper
If you liked what you learned and you want to see more, check out one of my courses!
π¨βπ» my SwiftUI course https://school.swiftyplace.com/courses/swiftui-course
π¨βπ» my Core Data and SwiftUI course https://school.swiftyplace.com/courses/swiftui-and-core-data
π©π»βπ» Combine course https://school.swiftyplace.com/courses/master-combine-framework
#SwiftUI #iOSDevelopment