相关疑难解决方法(0)

How to resize Image with SwiftUI?

I have a large image in Assets.xcassets. How to resize this image with SwiftUI to make it small?

I tried to set frame but it doesn't work:

Image(room.thumbnailImage)
    .frame(width: 32.0, height: 32.0)
Run Code Online (Sandbox Code Playgroud)

ios swift swiftui

38
推荐指数
15
解决办法
1万
查看次数

标签 统计

ios ×1

swift ×1

swiftui ×1