Sharing @Observable objects through SwiftUI's environment - SnowSeeker SwiftUI Tutorial 5/12

  Рет қаралды 1,309

Paul Hudson

Paul Hudson

Күн бұрын

Пікірлер: 2
@petehikers6003
@petehikers6003 19 күн бұрын
Fantastic Tutorials Paul, thanks a lot!! 😃
@firatsirinnn
@firatsirinnn 7 ай бұрын
Hey Paul, I hope you are well. I have a question about environment. I have an observable viewModel which has some functions and publishing value. I'm observing this viewModel in only 2 views but I'm using viewModel functions in every view. Should I use this (.environment). if I should use it, should I use this environment macro (Environment(Viewmodel.Self) var vm) for only Viewmodel functions? Thank you so much.
They Chose Kindness Over Abuse in Their Team #shorts
00:20
I migliori trucchetti di Fabiosa
Рет қаралды 12 МЛН
What type of pedestrian are you?😄 #tiktok #elsarca
00:28
Elsa Arca
Рет қаралды 13 МЛН
Programmatic Navigation in SwiftUI explained
17:50
donny wals
Рет қаралды 6 М.
Build your next website in Swift
24:45
Paul Hudson
Рет қаралды 44 М.