containerConcentric

Asked on 06/12/2025

1 search

The concept of "container concentricity" was discussed in the session titled "Build a SwiftUI app with the new design" at WWDC 2025. This design principle ensures that elements within a container, such as buttons or other controls, align their corners perfectly with the corners of their container, like a sheet or window. This is achieved by using a concentric rectangle shape and passing the container concentric configuration to the corner parameter of a rectangle. This approach helps maintain a consistent and balanced design across different displays and window shapes.

For more details, you can refer to the session Build a SwiftUI app with the new design (16:20).