SelectionShapeStyle

A style used to visually indicate selection following platform conventional colors and behaviors.

StructureiOS 15.0+macOS 10.15+SelectionShapeStyle in SwiftUI

Declaration

React
type SelectionShapeStyle = SwiftOpaque<'SelectionShapeStyle'>;
Swift
struct SelectionShapeStyle

Overview

You can also use ShapeStyle.selection to construct this style.

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

See also

More in Styles.