Post

Replies

Boosts

Views

Activity

Reply to SwiftUI Liquid Glass Menu briefly turns black after dismissing before returning to transparent glass
I’m seeing what looks like the same issue in my app as well. In my case, I have a top control pill that uses Liquid Glass, and inside that pill there are two SwiftUI Menu buttons. The issue happens with both menu buttons: one uses the line.3.horizontal.decrease symbol and the other uses the number symbol. The glass pill normally renders correctly, but after opening and dismissing one of the menus, the control briefly appears as a solid/dark pill before returning to the expected transparent Liquid Glass appearance. Here is the relevant structure from my code: private var displayOptionsPill: some View { HStack(spacing: 0) { filterMenuButtonInPill displayModeMenuButtonInPill } .padding(.horizontal, 6) .frame(height: 44) .glassEffect(.regular.interactive(), in: Capsule()) } private var filterMenuButtonInPill: some View { Menu { filterMenuContent } label: { Image(systemName: "line.3.horizontal.decrease") .font(.title2) .fontWeight(.medium) .foregroundStyle(.primary) .frame(width: 38, height: 32) .contentShape(Rectangle()) } .buttonStyle(.plain) } private var displayModeMenuButtonInPill: some View { Menu { displayModeMenuContent } label: { Image(systemName: "number") .font(.title2) .fontWeight(.medium) .foregroundStyle(.primary) .frame(width: 38, height: 32) .contentShape(Rectangle()) } .buttonStyle(.plain) } So the setup is slightly different from the original example, because the glassEffect is applied to the outer pill container rather than directly to the Menu label. However, the visual result seems to be the same: dismissing the SwiftUI Menu briefly causes the Liquid Glass control to render incorrectly as a solid dark/black pill. I would also be interested to know whether this is expected behavior, a SwiftUI rendering limitation, or a bug in the current iOS 26 Liquid Glass implementation.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
1w
Reply to SwiftUI Liquid Glass Menu briefly turns black after dismissing before returning to transparent glass
I’m seeing what looks like the same issue in my app as well. In my case, I have a top control pill that uses Liquid Glass, and inside that pill there are two SwiftUI Menu buttons. The issue happens with both menu buttons: one uses the line.3.horizontal.decrease symbol and the other uses the number symbol. The glass pill normally renders correctly, but after opening and dismissing one of the menus, the control briefly appears as a solid/dark pill before returning to the expected transparent Liquid Glass appearance. Here is the relevant structure from my code: private var displayOptionsPill: some View { HStack(spacing: 0) { filterMenuButtonInPill displayModeMenuButtonInPill } .padding(.horizontal, 6) .frame(height: 44) .glassEffect(.regular.interactive(), in: Capsule()) } private var filterMenuButtonInPill: some View { Menu { filterMenuContent } label: { Image(systemName: "line.3.horizontal.decrease") .font(.title2) .fontWeight(.medium) .foregroundStyle(.primary) .frame(width: 38, height: 32) .contentShape(Rectangle()) } .buttonStyle(.plain) } private var displayModeMenuButtonInPill: some View { Menu { displayModeMenuContent } label: { Image(systemName: "number") .font(.title2) .fontWeight(.medium) .foregroundStyle(.primary) .frame(width: 38, height: 32) .contentShape(Rectangle()) } .buttonStyle(.plain) } So the setup is slightly different from the original example, because the glassEffect is applied to the outer pill container rather than directly to the Menu label. However, the visual result seems to be the same: dismissing the SwiftUI Menu briefly causes the Liquid Glass control to render incorrectly as a solid dark/black pill. I would also be interested to know whether this is expected behavior, a SwiftUI rendering limitation, or a bug in the current iOS 26 Liquid Glass implementation.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
1w