Contents

borderless

A button style that doesn’t apply a border.

Declaration

@MainActor @preconcurrency static var borderless: BorderlessButtonStyle { get }

Discussion

In tvOS, when a person focuses on a borderless button, the button animates to a raised position with a Liquid Glass effect. This button style applies a Liquid Glass effect to the first image of the button’s content when the button gains focus. To apply the effect to a different subview of your button, apply the hoverEffect(_:) modifier with a highlight effect to that subview. For more information, see Creating a tvOS media catalog app in SwiftUI.

To apply this style to a button, or to a view that contains buttons, use the buttonStyle(_:) modifier.

See Also

Getting built-in button styles