Created
August 18, 2020 07:38
-
-
Save hirauchg/71c60c0eda16eb1b8a1786b4aebf30a7 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 { | |
var body: some View { | |
VStack { | |
Image("soccer") | |
Image("soccer") | |
.resizable() | |
.frame(width: 200, height: 100) | |
Image("soccer") | |
.resizable() | |
.frame(width: 200, height: 300) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment