Wow, that works. Thank you! So basically I just had to include a uiImage: which wasn’t in the original code and add your three line to get the image to display properly.
Took me some try and error - because some of the code displays as a thumbnail and I had to figure out which code to include and which is included in the [Thumb].
When I copy&paste my working code here it looks like this:
struct CircleImage: View {
var body: some View {
Image(uiImage: imageLiteral(resourceName: "Foto.png"))
.resizable()
.frame(width: 200, height: 200)
.clipShape(Circle())
}
}
in the playground App the line Image(uiImage.... looks like this:
Image(uiImage: [Thumbnail]) Thanks again, big help!
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: