-
-
Save ufo22940268/220cd201bff4b7e998d440d101cca3f4 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 ContentView: View { | |
@ObservedObject var entity: MyEntity | |
var body: some View { | |
NavigationView { | |
VStack { | |
Text("asdfasdf \(entity.name!)") | |
Button("btn") { | |
self.entity.name = "kkkkkkkk" | |
} | |
NavigationLink(destination: ContentView(entity: entity)) { | |
Text("jump") | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment