Тёмный

Intro to SwiftUI Data Flow 

Swift Arcade
Подписаться 10 тыс.
Просмотров 7 тыс.
50% 1

#swiftui #ios #swift
In this introduction episode to SwiftUI data flow, we break down six ways data can be passed into SwiftUI views.
Property / @State / @Binding / @ObservedObject / @StateObject / @Environmentobject
Courses
Data Structures & Algorithms
www.udemy.com/...
Level Up AutoLayout
www.udemy.com/...
Level Up in Swift
www.udemy.com/...
Source code
github.com/jra...
Free e-Book getting started iOS
Twitter
@jrasmusson

Опубликовано:

 

28 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 36   
@alcprado
@alcprado Год назад
I've been into UIKit for 6 years and getting into SwiftUI this year and your video was the mind blowing to me. Now everything makes sense. BTW, I love the way you make videos with old arcades. These take me back to my childhood memories. Double thank you!!!
@maaz6912
@maaz6912 2 года назад
Your channel deserves many more views and attention than it currently has. Kudos to you, for providing such high quality content for free! I wish huge success for your channel.
@kmaximoff
@kmaximoff 2 года назад
I have been learning Swift for a year now, and watched a lot of RU-vid videos on this topic. Your explanation is amazing! Thank you !
@swiftarcade7632
@swiftarcade7632 2 года назад
Thank you for the comment Kamran. Much appreciated. All the best in the New Year!
@kmaximoff
@kmaximoff 2 года назад
@@swiftarcade7632Happy new year for you too! All the best ! :)
@saeedhajizadeh5552
@saeedhajizadeh5552 3 года назад
Thank you for this nice and easy-to-understand intro guide. Bless you.
@swiftarcade7632
@swiftarcade7632 3 года назад
You are most welcome. My pleasure.
@responsive_random
@responsive_random 2 года назад
OMG this is so good. I want to say I still don't fully get why all of these need to exist in SwiftUI but it's already making much more sense to me than previously. They don't make perfect sense yet but they make much better sense now. Thanks!
@swiftarcade7632
@swiftarcade7632 2 года назад
Most welcome Hongfeng. I had the same question as you when starting out. I myself refer to this video often :) Cheers.
@sirvandorlot169
@sirvandorlot169 2 года назад
Been struggling with this for over a week in an app I have been making. This video helped me so much. Thank you!!!!!
@joejarriel
@joejarriel Год назад
Clearest walkthrough of this topic at a great pace and depth. Thank you.
@silver10188
@silver10188 2 года назад
Awesome! I'm in the middle of a swiftui app and really needed this. Awesome channel my first video and will be watching more!
@swiftarcade7632
@swiftarcade7632 2 года назад
You are very welcome Silver. Data flow for me is/was one of the most confusing things about SwiftUI. Glad it helped!
@HUNTELAAR11W
@HUNTELAAR11W 3 года назад
Best explanation of states etc. ever seen on youtube.
@swiftarcade7632
@swiftarcade7632 3 года назад
Aww thank you Laynay. They certainly confused me. Cheers.
@pcaso
@pcaso 3 года назад
Your explanations are very good
@swiftarcade7632
@swiftarcade7632 3 года назад
Thanks P C. All the best.
@TimArdan
@TimArdan 3 года назад
I see someone likes their Atari 7800 games! Was my first game system and I still have it!
@swiftarcade7632
@swiftarcade7632 3 года назад
What! Very cool Tim. Asteroid was one of my favorite games. Thanks for dropping by.
@deanwthompson5633
@deanwthompson5633 2 года назад
Amazing explanation!!
@swiftarcade7632
@swiftarcade7632 2 года назад
Thank you Dean. Much appreciated. Cheers - Jonathan
@magicinternetmoney8715
@magicinternetmoney8715 2 года назад
Excellent video 🙏🏼. One question: Why must we declare the @ObservedObject throughout the view hierarchy? I thought setting the observed object on the ContentView struct would be enough to trigger a redraw of the contentView's body, and as the body is redrawing, a new DetailView with the newly published Book would be instantiated and so on. So if the redrawing is happening already, why do we need to explicitly pass the @ObservedObject down in the DetailView and DetailHeader?
@swiftarcade7632
@swiftarcade7632 2 года назад
That's just the way this @ObservedObject works. It needs to be passed to each view that renders it. If you want to avoid that coupling, you can leverage the @EnvironmentObject. That one you can pull out of the air anywhere. Cheers - Jonathan
@MikeG-ol2rj
@MikeG-ol2rj 2 года назад
Thank you so much for this video, your explanation of the different data flow is really clear.
@ValentinaEvdokimova-y3p
@ValentinaEvdokimova-y3p Год назад
Thank you for this tutorial, it's the best on this topic that I've seen
@Jock3R87
@Jock3R87 2 года назад
No words… you are simply great mate… R E S P E C T…
@mafiaboy16
@mafiaboy16 2 года назад
Waw🤯❤❤
@idanboadana3611
@idanboadana3611 3 года назад
Thank you :) this made a lot of sense to me
@rasmus4200
@rasmus4200 3 года назад
You are most welcome. I found this super confusing at first.
@swiftarcade7632
@swiftarcade7632 3 года назад
Good to hear Idan. Thx for the comment.
@mhfs61
@mhfs61 2 года назад
Very educational and helpful. 👍🏼👍🏼👍🏼
@swiftarcade7632
@swiftarcade7632 2 года назад
Thanks Marlon. Appreciated.
@codeelsewhere
@codeelsewhere 3 года назад
noice, thanks a lot.
@swiftarcade7632
@swiftarcade7632 3 года назад
Welcome CodeElsewhere.
@iOSTechie
@iOSTechie 3 года назад
Nostalgia moment when you played the Popeye game video 😍 So far the best explanation I have seen on RU-vid on these Property Wrappers. Thank you 🙂
@swiftarcade7632
@swiftarcade7632 3 года назад
That's awesome Prashant. Not sure who if anyone would remember that game. It was great :) Thx for the comment.
Далее
How to switch view flows SwiftUI
8:44
Просмотров 7 тыс.
Grouping network calls like a boss - DispatchGroup
14:35
Меня Забанили в Steam CS2 / PUBG
19:19
Просмотров 157 тыс.
11 ming dollarlik uzum
00:43
Просмотров 279 тыс.
8 Data Structures Every Programmer Should Know
17:09
Просмотров 25 тыс.
Data Flow in a SwiftUI App
33:15
Просмотров 54 тыс.
The secret to the UIScrollView
11:44
Просмотров 12 тыс.
8 Common SwiftUI Mistakes - and how to fix them!
28:05
Building Better Apps with Value Types in Swift
39:44
Просмотров 3,6 тыс.
OpenAI’s New ChatGPT: 7 Incredible Capabilities!
6:27
Is Computer Science still worth it?
20:08
Просмотров 330 тыс.
Getting started with the Spotify iOS SDK
27:14
Просмотров 13 тыс.
Меня Забанили в Steam CS2 / PUBG
19:19
Просмотров 157 тыс.