Created
January 11, 2024 21:05
-
-
Save hasanalisiseci/b5099618d095f5c04bbf2619a942999a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct WeatherView: View { | |
@State var weatherVM = WeatherViewModel() | |
var body: some body { | |
SubWeatherView(vm: weatherVM) | |
} | |
} | |
struct SubWeatherView:View { | |
@Bindable var vm: WeatherViewModel | |
var body: some body { | |
TextField("City", text: $vm.city) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment