Комментарии:
great job but i have a comment on an issue
the prompts shouldn’t appear immediately when the user runs the app
I like your teaching style Sir
Lovely
this isnt proper MVVM, there shouldnt be functions exposing fields in the VM, it should just be observables
ОтветитьOnly now found this video - yet again very helpful. What I don't get with SwiftUI is, how this can be efficient?!? Take in this example isValidPasswod(): It's called to set the sign-up button's opacity, to set that button's disabled state and to set the text prompt for the password field ... so the exact same RegEx match is performed at least three times. I know it's not much in this example, but in huge applications with complex models these things could stack up pretty quickly, couldn't they?
ОтветитьSpot on.
ОтветитьThis is awesome! Question though, how to validate the fields only when the button is press and add red border to the field not passed the validation? Thanks
ОтветитьHi Stewart, thanks for yet another fantastic video. I downloaded the project and just to experiment I tried removing the @Published wrappers from the String properties in the view model. Obviously, the signUp() method didn't work because the view model was unable to emit the values without the wrapper. It's the console message I started receiving while modifying the text fields I'm curious about and I wonder if you have any insight? "Binding<String> action tried to update multiple times per frame."
Cheers.
Seriously it's an amazing tutorial.
ОтветитьAmazing video, thank you so much, I REALLY learned a LOT. Allow me to share some knowledge with you, too (I have 10 yrs of programming experience, not with swift though)
1) it's better to return the boolean result of expression itself, so instead of something like this
if expression_1 && expression_2 && expression_3 {
return true
} else {
return false
}
it's better to do something like this
return expression_1 && expression_2 && expression_3
2) with simple constant values returned from a simple boolean expression, instead of this
if some_bool {
return "abc"
else {
return "xyz"
}
you could do this
return some_bool ? "abc" : "xyz"
Great tutorial! What's the github repo of this project? Thanks!
Ответитьwhich Tool you use to make videos
ОтветитьWOw I'm going to say, I was scared when you said MVVM but it became really clear when you started showing it. Thank you so much!
ОтветитьSuch great content. Thank you Stewart !
ОтветитьAwesome session but how is you deleted your @State Private all the same time
ОтветитьThis wasn’t long at all, because it has value. It is great and clearly explained session. Thanks you for that.
ОтветитьWhat a king!!! Sharing valuable knowledge
ОтветитьI'm wondering why the isSignupComplete not a @Published variable?
ОтветитьYou are amazing 😉
Thank you so much 😊
I am waiting your videos every day.
My best wishes for you 👍😍❤️🌹🥰
What is a z stack?
ОтветитьMVVM! 😍
Ответить