Contents

size(width:height:)

Returns a new version of self representing the same shape, but that will ask it to create its path from a rect of size (width, height). This does not affect the layout properties of any views created from the shape (e.g. by filling it).

Declaration

nonisolated func size(width: CGFloat, height: CGFloat) -> some Shape

See Also

Transforming a shape