DefaultButtonStyle

The default button style, based on the button's context.

StructureiOS 13.0+macOS 10.15+tvOS 13.0+watchOS 6.0+DefaultButtonStyle in SwiftUI

Declaration

React
type DefaultButtonStyle = SwiftOpaque<'DefaultButtonStyle'>;
Swift
nonisolated struct DefaultButtonStyle

Overview

You can also use PrimitiveButtonStyle.automatic to construct this style.

From Apple’s SwiftUI documentation. Code samples there are Swift.

See also

More in Styles.