ScaledShape

A shape with a scale transform applied to it.

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

Declaration

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

Initializers

One SwiftUI initializer backs <ScaledShape>.

React
<ScaledShape
  shape: SwiftUI.Shape
  scale: CGSize
  anchor?: SwiftUI.UnitPoint
/>
Swift
init(shape: Content, scale: CGSize, anchor: UnitPoint = .center)

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

See also

More in Shapes.