TransformedShape

A shape with an affine transform applied to it.

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

Declaration

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

Initializers

One SwiftUI initializer backs <TransformedShape>.

React
<TransformedShape
  shape: SwiftUI.Shape
  transform: CGAffineTransform
/>
Swift
init(shape: Content, transform: CGAffineTransform)

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

See also

More in Shapes.