I'm working on a new .accessoryInline widget, introduces with iOS 16. It's very simple, only displays static text and an image, said image is a custom SF Symbol, validated and also used in other places in which it works just fine (for example a .accessoryRectangular widget). Here is my code:
case .accessoryInline:
HStack {
Image("mysymbol.car")
.resizable()
.widgetAccentable()
Text("My Static Title")
}
This however only renders the text when running the app and leaves a weird small space where the image should be. Am I doing something wrong or is it a bug?
Answer: What fixed it for me was moving the lockscreen widgets code from its own target to a shared target with the homescreen widgets and used WidgetBundle