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?
On iOS 17 accessoryInline widgets do not show the image, this works for me:
change
Image("xxx")
to
Image(uiImage: UIImage(named: "xxx") ?? UIImage())
                        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