@State and @Binding are two of the most used ways to share data between views in SwiftUI. This is a simple example of how to pass a string between three views. Hopefully you find it helpful. Using Xcode 11.5
КОМЕНТАРІ: 27
@thephoenixbarber44354 місяці тому
Perfect, clear, and quick explanation. Thank you!
@draytond3 роки тому
Excellent explanation that is as clear as it is succinct. I instantly subscribed, looking forward to seeing more videos!
@akshaykumar-qj2kx3 роки тому
awesome. easy to understand.. expecting more videos :)
@blisdevHQ9 місяців тому
thanks, this is the easiest explanations on youtube so far
@susantasahoo28192 роки тому
Excellent Explanation!! Thanks!
@randdnao8371Рік тому
Great🎉 I was hoping to get the video that is a simple explanation about state and binding like this
@Alexeytrn11 місяців тому
So clearly, thank you!
@hamayunzeb8765Рік тому
Outstanding that's I need 💯
@LiittleMiimii2 роки тому
Awesome! First tutorial that explains ist so well, I finally understand:)) now do it for Classes 😂 I have a gesture recognizer coordinator, which should realize a Button tap and change the Position of an object in the scene that was placed by tapping the screen first in the coordinator.
@Wiintb2 роки тому
This is super good.
@IlkerKabadayi163 роки тому
thanks alot. its now more clear ...
@angus21702 місяці тому
Thank you! Wonderful video :)
@MamoonYameenРік тому
Excellent explainaltion
@ashishrana47362 роки тому
keep Going
@anashassnn2 роки тому
Thank you!!
@jkeee10 місяців тому
thank you!
@Xlife233 роки тому
Wow thanks a lot!
@lanaluong58873 роки тому
Got it. Thanks a lot
@KrassIankov3 роки тому
Thanks for watching
@alwayssmile31253 роки тому
Cool
@serkanyildirim1159Рік тому
perfect explanation thanks a lot.
@KrassIankovРік тому
Glad it was helpful!
@havardhestetun1390Рік тому
Great stuff, is it true though that in the current version of SwiftUI you don't need the \(self.placeholdertext), and can just type in Text(placeholdertext) ?
@user-pb1ng9wz1l2 роки тому
10:06 Is anyone knows how to show the method, struct, class belongs in this way?
@DavidNitzscheBell3 роки тому
So....@State if it's in the same View and for sharing between two Views, @Binding in the second View and pass the variable with $. Is that the summary?