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
VStack { | |
Image("icon") | |
.resizable() | |
.scaledToFit() | |
Text("xxxxxxxxxxx") | |
.foregroundColor(.baseBackground) | |
} |
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) |
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
extension Color { | |
static let baseBackground = Color(red: 0 / 255, green: 123 / 255, blue: 251 / 255) | |
} |
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
func usecase1and2(isUsecase1: Bool) { | |
a() | |
b() | |
// usecase1の時のみ実行 | |
if isUsecase1 { | |
c() | |
} | |
d() | |
} |
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
VStack { | |
Image("icon") | |
.resizable() | |
.scaledToFit() | |
Text("xxxxxxxxxxx") | |
.foregroundColor(Color(red: 0 / 255, green: 123 / 255, blue: 251 / 255)) | |
} |
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
Button(action: { | |
// do something | |
}) { | |
HStack { | |
Image("icon") | |
.resizable() | |
.scaledToFit() | |
Text("xxxxxxxxxxxxxxxx") | |
.foregroundColor(Color(red: 0 / 255, green: 123 / 255, blue: 251 / 255)) | |
} |
NewerOlder