I was surprised by the dissatisfaction with the timer and the frequent updating of the view. The code does what suppose to do and actually doing that pretty well with hi performance. If you update elapsed time value every second in a loop and display this value in a text view then obviously the Time View with all subviews will refresh every second. Just because it is a struct and its state was changed. At first glance it could sounds scary. However SwiftUI is pretty smart, it checks state of each subview and redraw only view where it's own state was changed. Of course there are a number of criteria that must be met such as avoiding AnyView etc. So if you understand how SwiftUI view lifecycle works it stops being something scary.
@RohitPatil_Tech9 ай бұрын
Great video Zamzam! Gives a really good picture to help chose/not to chose SwiftUI for upcoming production projects.
@SwiftHeroes9 ай бұрын
really helpful 💎
@30guarino10 ай бұрын
I love that name....ZAMZAM
@Spacer-l3j10 ай бұрын
Why do we have so many speakers nowadays. I'm not talking about her because she knows what she doing but there's so many scammers trying to sell a copy paste course
@SwiftHeroes10 ай бұрын
Because the business of online course is too easy to scale, pay attention to the experience of those who teach, an excellent principle is to see concretely how long they have been doing what they teach. Our speakers are all carefully selected, you will never find a scammer 😉
10 ай бұрын
👏👏👍
@erfanoshana9 ай бұрын
30 minutes to say SwiftUI is great? Everyone knows it after 5 years :D