SwiftUI - @Binding Property Wrapper Explained - Passing Data

  Рет қаралды 34,279

Sean Allen

Sean Allen

Күн бұрын

Пікірлер: 40
@seanallen
@seanallen 3 жыл бұрын
If you enjoy my teaching/presentation style, I've started creating my own iOS development courses at seanallen.teachable.com. You can watch the first ~10% for free to get a feel for them.
@prettygirl6146
@prettygirl6146 3 жыл бұрын
You literally saved me from stop coding forever. Love it.
@TidalWaveDan
@TidalWaveDan 2 жыл бұрын
I really appreciate the disclaimer and pointing me in the right direction for passing in at deeper levels. Thanks!
@KimbrellBrad
@KimbrellBrad 3 жыл бұрын
As always, very clear explanation. I really appreciate your content and style! Thanks for what you do for the community!
@seanallen
@seanallen 3 жыл бұрын
Thanks for the kind words, Brad 😀
@traftonreynolds3528
@traftonreynolds3528 2 жыл бұрын
I'm making an app for my internship this summer (Never used swift before last month) and this is exactly what I was looking for. You're a lifesaver, thank you!!!
@delask7601
@delask7601 Жыл бұрын
Nice tutorial, getting lots of tips from the video
@coolisfoolable
@coolisfoolable 3 жыл бұрын
Love your channel Sean. Subscribed!!!!
@andrevdw747
@andrevdw747 3 жыл бұрын
Thanks Sean!
@mayankbhaisora2699
@mayankbhaisora2699 3 жыл бұрын
Thanks for this easy to understand video :)
@seanallen
@seanallen 3 жыл бұрын
Happy to help, Mayank!
@mayankbhaisora2699
@mayankbhaisora2699 3 жыл бұрын
@@seanallen Thank you so much... Can you please share a video showing the exact structure of the project in MVC and MVVM and where should we keep our API calling code in UIKit and also the structure of SwiftUI project... Showing some demo code with best practices in folder structure and where to write specific code like networking, logical code etc. I never got exposed properly with best practices as I am the only iOS developer in my company and learnt iOS development myself but I am always confused whether i am properly following the best practices or not.
@peterplass9458
@peterplass9458 3 жыл бұрын
Thank you very much. Your videos are really great and useful. Peter
@seanallen
@seanallen 3 жыл бұрын
Glad you like them!
@edyarro4291
@edyarro4291 10 ай бұрын
Great content, i appretiate the disclaimer. Not because you can do it that you should #facts
@seanallen
@seanallen 10 ай бұрын
I appreciate that
@terrykuo501
@terrykuo501 3 жыл бұрын
Great Video👍🏽🤩, SFsymbols actually can use the .font modifier to change the size tho. Apple have seen that as a Text even though it’s called inside Image().
@falcontomto
@falcontomto 3 жыл бұрын
Thanks for sharing that knowledge! didn't know that and I'm gonna try that in my playground project later. :)
@petersuvara
@petersuvara 3 жыл бұрын
Nice little tutorial! 👍🏻
@seanallen
@seanallen 3 жыл бұрын
Thanks Peter!
@legend_chronicles
@legend_chronicles 3 жыл бұрын
really like this video. thank you
@seanallen
@seanallen 3 жыл бұрын
Glad you enjoyed it, Nheng.
@KFrench1123
@KFrench1123 3 жыл бұрын
Good stuff! Thanks, Sean!
@ahmadkhattab5700
@ahmadkhattab5700 10 ай бұрын
Thanks for sharing this awesome video!, But i have a question is it possible to pass @Published property in ViewModel to custom SwiftUI View expecting @Binding property
@danrleirib
@danrleirib 3 жыл бұрын
Amazing content! Thanks a lot !
@oxirosmusic
@oxirosmusic Жыл бұрын
One thing to note is that binding properties don’t have to be named the same for them to be binded
@prajaktanisal2247
@prajaktanisal2247 8 ай бұрын
What if the variable in parent is optional ?
@pren5948
@pren5948 2 жыл бұрын
thanks
@willasaskara
@willasaskara 3 жыл бұрын
Thanks!
@seanallen
@seanallen 3 жыл бұрын
Happy to help, Willa.
@AZMerf
@AZMerf 3 жыл бұрын
How do you do this exact same thing but using @AppStorage? I figure I could replace the @State with a properly formatted @AppStorage but that didn’t work. I only updates the first string with the first thing typed in the modal (I am trying to pass a string). Of course when I close it or do something else on the first screen it updates, but not when I slide the modal back down. Thanks.
@egorsev
@egorsev 3 жыл бұрын
dude you are cool!
@cashbackhouses
@cashbackhouses 3 жыл бұрын
Great video. What's the proper way to pass a string that is a part of an array?
@fantomchris
@fantomchris 3 жыл бұрын
Really cool, but what is the meaning of @State and the usage of dollar before variables call?
@seanallen
@seanallen 3 жыл бұрын
It's a lot to type out, but I did a video just like this one for the @State property wrapper that explains it here 😀 - kzbin.info/www/bejne/ammtinWYat59ZtU
@fantomchris
@fantomchris 3 жыл бұрын
@@seanallen Thanks for your answer. Sorry for having missed that video. Nice work, as always.
@seanallen
@seanallen 3 жыл бұрын
No problem!
@gjermundification
@gjermundification 3 жыл бұрын
The dollar symbol is 2 way data binding in several frameworks; angular and Combine for sure.
@yrac2409
@yrac2409 3 жыл бұрын
Like .constant(false) in the preview section, what do you write down when your binding is a string not a bool? love your videos btw! very easy to understand!
@bronnstorm1563
@bronnstorm1563 Жыл бұрын
The contrast between the bald head and the lush beard made me feel so interesting that I was a little distracted. Dude, don't get me wrong, I mean very sexy
SwiftUI Link - Open Website in Safari | iOS 14 | Xcode 12.4
3:58
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
How to use @Binding property wrapper in SwiftUI | Bootcamp #22
12:40
Swiftful Thinking
Рет қаралды 39 М.
Swift Closures Explained
14:23
Sean Allen
Рет қаралды 71 М.
Swift Optionals - How to Unwrap (real examples)
14:20
Sean Allen
Рет қаралды 14 М.
SwiftUI List with Custom Cell & Passing Data
36:27
Sean Allen
Рет қаралды 119 М.
SwiftData Basics in 15 minutes
15:18
CodeWithChris
Рет қаралды 56 М.
How to use @ViewBuilder in SwiftUI | Advanced Learning #9
24:01
Swiftful Thinking
Рет қаралды 29 М.
SwiftUI - Reorder a List (2 Ways)
13:33
Sean Allen
Рет қаралды 9 М.
Swift - Class vs. Struct Explained
7:28
Sean Allen
Рет қаралды 37 М.
I Made an iOS App in MINUTES with This AI Tool!
13:20
Creator Magic
Рет қаралды 727 М.
ПЛЮСЫ и МИНУСЫ 1 и 2 смены в школе 🔥
0:39
Никита Удановский
Рет қаралды 3,5 МЛН
Pixel 7 и 7 Pro с Face ID - лучше iPhone 14 Pro!
21:12
Rozetked
Рет қаралды 457 М.
ПОСТАРЕЛА ЗА 1 ДЕНЬ НА 20 ЛЕТ - МУЖСКОЕ ЖЕНСКОЕ
55:44
ПРИЯТНЫЙ ИЛЬДАР
Рет қаралды 677 М.
Do YOU Understand WHAT JUST HAPPENED!? 😂 #shorts
0:57
LankyBox World
Рет қаралды 1,6 МЛН
Массаж головы пранк🤣
0:55
Kirya Kolesnikov
Рет қаралды 5 МЛН