I am trying to set height and width of an image . I've tried using following code but it didn't work.
Image("testImg")
.frame(width: 50, height: 50)
Try this
Image("testImg")
.resizable()
.frame(width: 50.0, height: 50.0)
Image(restaurant.image)
.resizable()
.frame(width: 40, height: 40)
.clipShape(Circle())
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With