Skip to content

Instantly share code, notes, and snippets.

@hirauchg
Created August 18, 2020 07:38
Show Gist options
  • Save hirauchg/71c60c0eda16eb1b8a1786b4aebf30a7 to your computer and use it in GitHub Desktop.
Save hirauchg/71c60c0eda16eb1b8a1786b4aebf30a7 to your computer and use it in GitHub Desktop.
画像のサイズを変更する
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