Sets the style for buttons within this view.
SDKs
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Xcode 11.0+
Framework
- Swift
UI
Declaration
func buttonStyle<S>(_ style: S) -> some View where S : Primitive Button Style
Sets the style for buttons within this view.
SDKs
Framework
func buttonStyle<S>(_ style: S) -> some View where S : Primitive Button Style
func button Style<S>(S) -> View
Sets the style for buttons within this view.
func date Picker Style<S>(S) -> View
Sets the style for date pickers within this view.
func menu Button Style<S>(S) -> View
Sets the style for menu buttons within this view.
func navigation View Style<S>(S) -> View
Sets the style for navigation views within this view.
func picker Style<S>(S) -> View
Sets the style for pickers within this view.
func text Field Style<S>(S) -> View
Sets the style for text fields within this view.
func toggle Style<S>(S) -> View
Sets the style for toggles within this view.
func control Size(Control Size) -> View
Sets the size class, like regular or small, for controls within this view.