SwiftUI Glass Effect Tint Color Disappears
Does anyone know why glassEffect with a tint color works when the app is foregrounded but disappears when backgrounded or while in the app switcher? I've tested this on iOS 26.0 and 26.1. When the app is foregrounded it looks normal and continues to if you go straight into the app switcher but once backgrounded at all the tint color goes away.
struct ContentView: View {
var body: some View {
VStack(spacing: 12) {
Image(systemName: "star")
.font(.system(size: 40))
.foregroundStyle(.white)
Text("This is a star")
.font(.headline)
.foregroundStyle(.white)
}
.frame(maxWidth: .infinity)
.frame(height: 140)
.padding()
.glassEffect(
.clear.tint(.green).interactive(),
in: .rect(cornerRadius: 16)
)
}
}
