CustomShape

A shape declared in JavaScript with createShape.

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

Declaration

React
import { CustomShape } from 'swiftui-react-native';
Swift
protocol InsettableShape : Shape

Initializers

One SwiftUI initializer backs <CustomShape>.

React
<CustomShape
  shape: SwiftUI.InsettableShape
/>
Swift
a Shape declared by createShape

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

See also

More in Drawing and shapes.