<!--
{
  "availability" : [
    "Xcode: 16.0.0 -",
    "iOS: 18.0.0 -"
  ],
  "documentType" : "article",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/Creating-custom-container-views",
  "metadataVersion" : "0.1.0",
  "role" : "sampleCode",
  "title" : "Creating custom container views"
}
-->

# Creating custom container views

Access individual subviews to compose flexible container views.

## Overview

> Note: This sample code project is associated with WWDC24 session 10146:
> [Demystify SwiftUI containers](https://developer.apple.com/wwdc24/10146/).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)