Last active
April 3, 2023 02:27
-
-
Save nbhasin2/7b5b0395e0a37206c59f8a6a73c0876f to your computer and use it in GitHub Desktop.
NavigationStack & NavigationView: CarDetailView and CarType Example
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 CarTypeView: View { | |
let carType: CarType | |
var body: some View { | |
VStack { | |
Text("Car type: \(carType.rawValue)") | |
} | |
.navigationTitle("\(carType.rawValue)") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment