Hi, please consider the following widget view
case .accessoryCircular:
VStack{
Image(entry.icon).resizable().padding().border(.red)
Text("IN")
}
EDIT, i also have tried this without success:
Image(entry.icon).resizable().frame(height: gp.size.height * 0.30, alignment: .center)
The image works if it's a PNG but now it's an SVG. I'm pretty much a SwiftUI noob, so i don't know how to get the image to work within the circular widget... or perhaps SVG isn't supported in lockscreen widgets?
The error message i'm getting from the preview is
The body of the Widget' entries contains an image of size(2094, 2010) which is beyond the maximum of (1418,8, 3067,2).
That's a pretty strange error message to me, i thought the vstack would keep the image within the boundaries? also, I get the same message if i remove the text.
Do i have to set the size explicitly?? In that case i have to hard-code it to some fixed widget size, right? I'd like to avoid that if possible.
Grateful for pointers.