Post

Replies

Boosts

Views

Activity

Reply to No containerBackground content on Widget in iOS 18 tinted home screen style
The following code is the minimal version to address this problem. This code gets called in side the WidgetBundle. struct SimpleWidgetView: View { var body: some View { // Text of other content. This is visible in tinted version Text("Widget containing tekst") .containerBackground(for: .widget) { // Image background. Not visible in tinted config, but visible in Light and Dark Image("widget_background") .resizable() .scaledToFill() } } }
Jun ’24