Answers for "swiftui image resizable aspect ratio"

7

set image width and height swiftui

Image(room.thumbnailImage).resizable()
.frame(width: 32.0, height: 32.0)
Posted by: Guest on March-13-2020
-1

swiftui image aspect ratio

VStack {
    GeometryReader { geo in
        Image("Example")
            .resizable()
            .aspectRatio(contentMode: .fit)
            .frame(width: geo.size.width, height: 300)
    }
}
Posted by: Guest on March-21-2021

Code answers related to "swiftui image resizable aspect ratio"

Code answers related to "Swift"

Browse Popular Code Answers by Language