Generic Structure

RotatedShape

A shape with a rotation transform applied to it.

Declaration

@frozen struct RotatedShape<Content> where Content : Shape

Topics

Instance Methods

func inset(by: CGFloat) -> RotatedShape<Content.InsetShape>
func offset(CGSize) -> OffsetShape<RotatedShape<Content>>

Changes the relative position of this shape using the specified size.

func offset(CGPoint) -> OffsetShape<RotatedShape<Content>>

Changes the relative position of this shape using the specified point.

func offset(x: CGFloat, y: CGFloat) -> OffsetShape<RotatedShape<Content>>

Changes the relative position of this shape using the specified coordinates.

func rotation(Angle, anchor: UnitPoint) -> RotatedShape<RotatedShape<Content>>

Rotates this shape around an anchor point at the angle you specify.

func scale(CGFloat, anchor: UnitPoint) -> ScaledShape<RotatedShape<Content>>

Scales this shape without changing its bounding frame.

Applying Standard Modifiers

View Modifiers

Configure this view and the views it contains by applying standard modifiers.

Relationships

Conforms To

See Also

Transformed Shapes

protocol InsettableShape

A shape type that is able to inset itself to produce another shape.

struct ScaledShape

A shape with a scale transform applied to it.

struct OffsetShape

A shape with a translation offset transform applied to it.

struct TransformedShape

A shape with an affine transform applied to it.