Skip to main content

container_shape

Function container_shape 

Source
pub fn container_shape(view: &ViewHandle, shape: InsettableShape) -> ViewHandle
Expand description

Apply .containerShape(_:).

Three overloads share this name, differing only by extra constraints; this is the one taking a plain InsettableShape. A shape that also conforms to RoundedRectangularShape — Circle, Rectangle, Capsule — resolves to a different overload in Swift source than the symbol bound here, and so produces a different modifier.