swiftui image aspect ratio code example
Example 1: set image width and height swiftui
Image(room.thumbnailImage).resizable()
.frame(width: 32.0, height: 32.0)
Example 2: swiftui image aspect ratio
VStack {
GeometryReader { geo in
Image("Example")
.resizable()
.aspectRatio(contentMode: .fit)
.frame(width: geo.size.width, height: 300)
}
}