SwiftUI: @State and @Binding | iOS, Swift, 60 seconds

preview_player
Показать описание
This video shows you—in 60 seconds—how to use the @State and @Binding property wrappers in SwiftUI. This is especially helpful when you want to pass data into a custom view! I apologize, but I ran out of time and couldn't show the live preview of the end result! I felt so accomplished because of hurrying so fast that I had to upload this video anyway 😬

Let me know what you think and if you have any questions! Please give a thumbs-up to the video if you liked it and also subscribe if you would like to see more.

Thanks!
Scott

📙 Get a FREE SwiftUI book from my friend (partner link):

#iOScompressed #iOSdev #SwiftLang
Рекомендации по теме
Комментарии
Автор

What the actual .... you acutally made it.

uav
Автор

Perfect tutorial except for one thing. I don’t understand how @Binding is different from @State, or the reason @Binding is used here. An extra 10 seconds to explain that and this would be perfect

e
Автор

The video is very fast and the comparison? @State and @Binding?

eduardowinston
Автор

amazing in 60 secs hate those 10 min chit chat videos. Especially when you have qued 10's of them

bhagyashingale
Автор

I am not sure yet why I should use @Binding. What's the advantage? If I make the following instead: I leave away the $ sign in the parameter of the CustomButton call of ContentView and take a "normal" @State variable isSubscribed in the CustomButton structure, I achieve exactly the same result. So, Why do I have to use @Binding if I can go with two @State var as well?

joachimvetter
Автор

rather 60secs, i suggest u to make long videos on SwiftUI. u know the topic itself is new for all of the iOS developers. thank u in advance. 🙂🤗

muhammedasif
Автор

You can make large video for swift UI that will be great, btw nice tutorial

gouravmandliya
Автор

Thanks for another great tutorial but
Man, I did't get this at all !!!, first of all what is this? "var body: some View" this 'some View' has a weird syntax.
Second issue: What is @state & @binding ? I didn't learned it through this video.

TheAhmadReza
Автор

Now if I just didn’t have to install beta versions of macOS and Xcode to try this out... 😉

bmt