Instance Method インスタンスメソッド

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 宣言

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

See Also 参照

Transforming a Shape