One Logo Pool Ball
SwiftUI · IOS API REFERENCE

GlassButtonStyle

struct · iOS 26.0+ · SDK 27.1

nonisolated struct GlassButtonStyle

A button style that applies glass border artwork based on the button's context. You can also use ``PrimitiveButtonStyle/glass`` to construct this style.

Members (2)

init · iOS 26.0+

init

TypeScript
static init(): GlassButtonStyle
Swift declaration
nonisolated init()

Creates a glass button style.

init · iOS 26.1+

init

TypeScript
static init87555(glass: _SwiftUICore_Glass): GlassButtonStyle
Swift declaration
nonisolated init(_ glass: Glass)

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

GlassButtonStyle.makeBody(configuration:)

This protocol needs associated types that cannot yet cross the bridge.

All SwiftUI types →