clip a view to fit swiftui code example
Example: set image width and height swiftui
Image(room.thumbnailImage).resizable()
.frame(width: 32.0, height: 32.0)
Image(room.thumbnailImage).resizable()
.frame(width: 32.0, height: 32.0)