static var role: ShapeRole
An indication of how to style a shape.
Availability 有効性
Technology
static var role: ShapeRole
{ get }
SwiftUI looks at a shape’s role when deciding how to apply a Shape
at render time. The Shape
protocol provides a default implementation with a value of Shape
. If you create a composite shape, you can provide an override of this property to return another value, if appropriate.
static var role: ShapeRole