Created
August 18, 2020 08:19
-
-
Save hirauchg/ff8df08ce7042a096b4c064a2aaf2212 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") | |
.resizable(capInsets: .init(), resizingMode: .tile) | |
.frame(width: 300, height: 300) | |
Image("soccer") | |
.resizable(capInsets: .init(), resizingMode: .stretch) | |
.frame(width: 300, height: 300) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment