New Custom container in SwiftUI
Asked on 06/16/2025
1 search
At WWDC 2024, Apple introduced new capabilities for creating custom containers in SwiftUI. These custom containers can have the same capabilities as SwiftUI's built-in containers, such as List and Picker. This includes the ability to mix static and dynamic content, support sections, and add container-specific modifiers.
To learn more about building custom container views in SwiftUI, you can check out the session titled "Demystify SwiftUI containers." This session covers how to use several new APIs to build custom container views that support these capabilities. It also explains how to make custom containers support any composition of content, add support for sections, and define custom modifiers for decorating content within a container.
For a detailed explanation, you can start with the Demystify SwiftUI containers session.

What’s new in SwiftUI
Learn how you can use SwiftUI to build great apps for any Apple platform. Explore a fresh new look and feel for tabs and documents on iPadOS. Improve your window management with new windowing APIs, and gain more control over immersive spaces and volumes in your visionOS apps. We’ll also take you through other exciting refinements that help you make expressive charts, customize and layout text, and so much more.

Demystify SwiftUI containers
Learn about the capabilities of SwiftUI container views and build a mental model for how subviews are managed by their containers. Leverage new APIs to build your own custom containers, create modifiers to customize container content, and give your containers that extra polish that helps your apps stand out.

What’s new in SwiftUI
Learn what’s new in SwiftUI to build great apps for any Apple platform. We’ll explore how to give your app a brand new look and feel with Liquid Glass. Discover how to boost performance with framework enhancements and new instruments, and integrate advanced capabilities like web content and rich text editing. We’ll also show you how SwiftUI is expanding to more places, including laying out views in three dimensions.