I was experimenting with swiftUI and i found out that cornerRadius attributes makes my image disappear.
Image(uiImage: content.image)
.resizable()
.scaledToFill()
.frame(width: 60, height: 40)
.cornerRadius(3)
Is there something wrong with the code here ? I want my image to be resizable, fill the whole view, have a dimension of 60x40 and a cornerRadius of 3.
Thanks for your help, if you know what's wrong :)
XCode: 12.1 (12A7403)