TintShapeStyle

A style that reflects the current tint color.

StructureiOS 15.0+macOS 12.0+tvOS 15.0+watchOS 8.0+TintShapeStyle in SwiftUI

Declaration

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

Overview

You can set the tint color with the View.tint(_:) modifier. If no explicit tint is set, the tint is derived from the app's accent color.

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

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

See also

More in Styles.