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.

ComponentiOS 14.0+macOS 11.0+tvOS 14.0+watchOS 7.0+ContainerRelativeShape in SwiftUI