Skip to content

Instantly share code, notes, and snippets.

@hasanalisiseci
Created January 11, 2024 20:32
Show Gist options
  • Save hasanalisiseci/8ed42ef5d7109fac1a476fe9a3788e35 to your computer and use it in GitHub Desktop.
Save hasanalisiseci/8ed42ef5d7109fac1a476fe9a3788e35 to your computer and use it in GitHub Desktop.
@Observable
class WeatherViewModel {
...
}
struct WeatherView: View {
@State var weatherVM = WeatherViewModel()
var body: some View {
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment