card
A button style that doesn’t pad the content, and applies a Liquid Glass effect when the button has focus.
Declaration
@MainActor @preconcurrency static var card: CardButtonStyle { get }Discussion
This button style applies a Liquid Glass effect when the button gains focus. This style doesn’t apply any intrinsic padding to its contents, so images, text, and other content display edge-to-edge.
To apply this style to a button, or to a view that contains buttons, use the buttonStyle(_:) modifier.