画像の表示
struct ContentView: View {
var body: some View {
Image("Image", bundle: .main)
}
}

大きすぎるのでリサイズ
struct ContentView: View {
var body: some View {
Image("Image", bundle: .main)
.frame(width: 50.0, height: 50.0, alignment: .leading)
}
}
ちゃんとリサイズされません

.resizable()
を付ける
Image
をリサイズする際には .resizable()
をつけなければならないみたいです。
struct ContentView: View {
var body: some View {
Image("Image", bundle: .main)
.resizable()
.frame(width: 50.0, height: 50.0, alignment: .leading)
}
}

これでリサイズされました。