One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

ContainerRelativeShape

struct · iOS 14.0+ · SDK 27.1

@frozen struct ContainerRelativeShape

A shape that is replaced by an inset version of the current container shape. If no container shape was defined, is replaced by a rectangle.

Members (2)

method · iOS 14.0+

path

TypeScript
path(rect: { x: number; y: number; width: number; height: number }): Path
Swift declaration
nonisolated func path(in rect: CGRect) -> Path

Describes this shape as a path within a rectangular frame of reference. - Parameter rect: The frame of reference for describing this shape. - Returns: A path that describes this shape.

init · iOS 14.0+

init

TypeScript
static init(): ContainerRelativeShape
Swift declaration
init()

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

ContainerRelativeShape.inset(by:)

This protocol needs associated types that cannot yet cross the bridge.

All SwiftUICore types →