RotatedShape

A shape with a rotation transform applied to it.

ComponentiOS 13.0+macOS 10.15+tvOS 13.0+watchOS 6.0+RotatedShape in SwiftUI

Declaration

React
import { RotatedShape } from 'swiftui-react-native';
Swift
@frozen struct RotatedShape<Content> where Content : Shape

Initializers

One SwiftUI initializer backs <RotatedShape>.

React
<RotatedShape
  shape: SwiftUI.Shape
  angle: SwiftUI.Angle
  anchor?: SwiftUI.UnitPoint
/>
Swift
init(shape: Content, angle: Angle, anchor: UnitPoint = .center)

Also takes the common view props: modifiers, style and testID.

See also

More in Shapes.