What is the @StateObject property wrapper? – SwiftUI

What is the @StateObject property wrapper? – SwiftUI

Paul Hudson

3 года назад

10,641 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@AlePatron
@AlePatron - 16.03.2021 21:39

very helpful, thanks!

Ответить
@anotherguycalledsmith
@anotherguycalledsmith - 10.02.2021 23:36

Thank you very much for the reminder and hint to @main… One easily tends to forget this important entry point ;-)

So, I will put my AppState class there and carry on with @StateObjects and @EnvrionmentObjects down the line.

Ответить
@mrjskrueger
@mrjskrueger - 28.12.2020 17:38

Your content is really helpful and in high quality and your explanations are on point! Thanks a lot!

Ответить
@WilfriedJosset
@WilfriedJosset - 10.07.2020 08:41

Don't we want to be the case every time? What would be the purpose of @ObservedObject wrapper then? Deprecated? Many thanks for great content Paul!

Ответить
@SteBull
@SteBull - 06.07.2020 02:10

I am quite new to SwiftUI, I would really appreciate help regarding the new @main App structure. Where should I initialize my classes and launch functions now that AppDelegate with all is functions is gone?
Btw I love your content Paul.

Ответить