Last active
February 19, 2022 08:50
-
-
Save kamimi01/a7fdfc5a524af37e8f9855cd90153e7e 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
NavigationView { | |
Button(action: { | |
// do something | |
}) { | |
HStack { | |
Image("icon") | |
.resizable() | |
.scaledToFit() | |
Text("xxxxxxxxxxxxxxxx") | |
.foregroundColor(.baseBackground) | |
} | |
} | |
.navigationBarTitle("一覧", displayMode: .inline) | |
.background(NavigationConfigurator { nc in | |
nc.navigationBar.barTintColor = UIColor(red: 0 / 255, green: 123 / 255, blue: 251 / 255)) | |
nc.navigationBar.titleTextAttributes = [.foregroundColor : UIColor.white] | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://qiita.com/razpy/items/e199445ef93121d5226b