iOS 26 Reference to member '.glassProminent' cannot be resolved without a contextual typeSourceKit

.glassProminent not working, but .glass works for .buttonStyle()

as used here

https://youtu.be/3MugGCtm26A?si=dvo2FeE88OnNIwI9&t=938

/Users/brianruiz/repos/taskss/taskss/Views/Components/EmptyStateView.swift:125:39 Reference to member 'glassProminent' cannot be resolved without a contextual type


  if #available(iOS 26.0, *) {
                        Button(action: {
                            HapticManager.shared.selection()
                            action()
                        }) {
                            Text(buttonLabel ?? "Action")
                                .frame(maxWidth: .infinity)
                        }
                        .padding(.horizontal, 24)
                        .buttonStyle(.glassProminent)
                        .buttonBorderShape(.capsule)
                        .controlSize(.large)
                        .tint(.primary)
                        .offset(y: buttonOffset)
                        .opacity(buttonOpacity)
                        .scaleEffect(isPressed ? 0.95 : 1.0)
                        .animation(.bouncy(), value: isPressed)
                        .onLongPressGesture(minimumDuration: .infinity, maximumDistance: 50, pressing: { pressing in
                            isPressed = pressing
                        }, perform: {})
                        .onAppear {
                            guard animate else { return }
                            withAnimation(.bouncy().delay(0.6)) {
                                buttonOffset = 0
                                buttonOpacity = 1
                            }
                        }
                    } else {
                        // Fallback on earlier versions
                    }
Answered by Frameworks Engineer in 842820022

The .glassProminent button style will be available in a later beta release.

Hi @brianruiz,

Thanks for linking to the relevant session and sharing your code snippet.

Please file a bug report in Feedback Assistant, and share the FB number here so I can track it!

Best,

-J

The .glassProminent button style will be available in a later beta release.

iOS 26 Reference to member '.glassProminent' cannot be resolved without a contextual typeSourceKit
 
 
Q