RoundedCornerShape

public struct RoundedCornerShape : Shape

A shape with rounded corners.

Important

This is a Public Preview API. It may be changed or removed at any time.
  • Creates a path describing the shape with rounded corners.

    Important

    This is a Public Preview API. It may be changed or removed at any time.

    Declaration

    Swift

    public func path(in rect: CGRect) -> Path

    Parameters

    rect

    The rectangle in which to create the path.

    Return Value

    A path that describes the rounded corners shape.