PlainButtonStyle

A button style that doesn't style or decorate its content while idle, but may apply a visual effect to indicate the pressed, focused, or enabled state of the button.

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

Declaration

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

Overview

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

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

See also

More in Styles.