Back to Browse

SwiftUI tutorial for Beginners - @State vs @Binding - How to pass data between views?

5.8K views
Jan 23, 2021
23:59

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

Download

1 formats

Video Formats

360pmp436.5 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

SwiftUI tutorial for Beginners - @State vs @Binding - How to pass data between views? | NatokHD