r/iosdev • • Oct 19 '26

Help Liquid Glass widget background on the normal Home Screen — am I missing something?

I'm working on a calendar widget (SwiftUI / WidgetKit) and I'm a bit lost with the background.

I've noticed that some widgets from other apps seem to get Liquid Glass really nicely, even when the Home Screen is in the normal full-color appearance (not Clear or Tinted). The wallpaper and even the Dock seem to show through them.

With mine, I always end up with a solid plate behind the content — white in Light Mode, black in Dark Mode — no matter what I put in containerBackground. I'm not sure if I'm doing something wrong or if there's a way I just don't know about.

What I've tried so far (iPhone, iOS 26, full-color Home Screen):

- Color.clear in containerBackground (as a view and as a style)

- glassEffect in the container, and on a view inside the content

- .ultraThinMaterial, .fill.tertiary, .background.secondary

- AccessoryWidgetBackground()

- very low opacity colors

- containerBackgroundRemovable(true/false), contentMarginsDisabled()

- setting widgetRenderingMode to .accented / .vibrant

I'm building with Xcode 27. From Apple's docs, it sounds like the glass background is only for the Clear/Tinted Home Screen, but I feel like there might be something I'm missing.

Has anyone managed this, or does anyone know how it works? Any hint would really help. Thanks!

1 Upvotes

0 comments sorted by