Created
August 20, 2020 13:32
-
-
Save hirauchg/56a5137f738227227181fbb6329a60fe to your computer and use it in GitHub Desktop.
カスタムビューのNavigationLinkの実装
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 FirstView: View { | |
var body: some View { | |
NavigationView { | |
NavigationLink(destination: SecondView()) { | |
VStack { | |
Image("neko").renderingMode(.original) | |
Text("ネコ") | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment