iOS 26 Home Screen Widgets Color Rendering Issue

Hi everyone!

I've noticed a color rendering issue with Home Screen widgets on iOS 26: the colors displayed in widgets are inconsistent with those shown inside the app. At first, I suspected this might be caused by differences in color spaces, but even after explicitly specifying the color space for SwiftUI.Color or UIColor, the widget colors remain incorrect.

Steps to reproduce:

  1. Create a new iOS project in Xcode 26 beta 6.
  2. Add a new Widget Extension target.
  3. Use the following Widget view code:
struct MyWidgets: Widget {
    let kind: String = "MyWidgets"

    var body: some WidgetConfiguration {
        StaticConfiguration(kind: kind, provider: Provider()) { entry in
            let white = Color(.sRGB, red: 1, green: 1, blue: 1)
            let veryLightGray = Color(.sRGB, red: 0.96, green: 0.96, blue: 0.96)
            let lightGray = Color(.sRGB, red: 0.9, green: 0.9, blue: 0.9)
            
            VStack(spacing: 0) {
                Rectangle()
                    .foregroundStyle(veryLightGray) // 👈
                Rectangle()
                    .foregroundStyle(lightGray) // 👈
            }
            .containerBackground(white, for: .widget) // 👈
        }
        .configurationDisplayName("My Widget")
    }
}

⬆️ In-app, the colors are correct: the top block is a very light gray (white=0.96)✅, and the bottom block is a regular gray (white=0.90)✅.

However, on the Home Screen widget, the result is as follows:

⬆️ The top light gray block blends completely into the white background and is indistinguishable; the bottom gray block also appears lighter than it does in-app ❌. This issue occurs both on the simulator and on real devices. (Interestingly, the colors are correct in the Xcode Preview.)

Whether I declare colors in code (SwiftUI.Color or UIColor) or in the Asset Catalog, the widget's color rendering does not match expectations.


What's even stranger is that if I add an extra pure white block (white=1.0) to the view, it immediately affects all the colors in the widget:

This whole behavior makes it very difficult to set accurate colors for widgets on iOS 26. While it seems related to glass effect rendering and color space handling, I still feel there might be a bug in the implementation.

FB19752732

iOS 26 Home Screen Widgets Color Rendering Issue
 
 
Q