auto size image height in swift code example
Example 1: set image width and height swiftui
Image(room.thumbnailImage).resizable()
.frame(width: 32.0, height: 32.0)
Example 2: increase the size of the image in Swiftui
struct ResizedImage: View {
var body: some View {
Image("myImage")
.resizable()
.scaledToFit()
.frame(width: 200.0,height:200)
}
}