Don't write this code! (this local variable is really bad 🫣)

preview_player
Показать описание
#iOS #swift #softwaredeveloper #iosdeveloper

Thank you for watching this video 🙌

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

I hate being an ios developer, having to deal with this inner "magic" bullshit

GoeHybrid
Автор

Thank you for your sharing. i have a question, which should we select design pattern?

ekucet
Автор

I didn't know that, but I have done great 😭 Anyway, thx all the time!

신동규-eg
Автор

There is a lot wrong with this code. VM init within a SwiftUI view, giving the view a model object to init itself, the VM being a @StateObject

naturereporter
Автор

But we are meant to be using @State now, aren't we?

markaurelius
Автор

Is it oke initialize @StateObject from outside or on the init ?because I got `Accessing StateObject's object without being installed on a View. This will create a new instance each time.` when use init like yours

alpiopio
Автор

probably passing ready viewmodel in init is best

Alexiyraffasan
Автор

If you are using viewModel in SwiftUI code, you're on the wrong path.

mgames
visit shbcf.ru