<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/TabSectionExpansion",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI19TabSectionExpansionV"
  },
  "title" : "TabSectionExpansion"
}
-->

# TabSectionExpansion

The default expansion state for a tab section in the sidebar.

```
struct TabSectionExpansion
```

## Overview

Use this type in conjunction with the
[`defaultSectionExpansion(_:)`](/documentation/SwiftUI/TabContent/defaultSectionExpansion(_:)) modifier.

## Topics

### Tab section expansion options

[`static let automatic: TabSectionExpansion`](/documentation/SwiftUI/TabSectionExpansion/automatic)

The system determines the default expansion state.

[`static let collapsed: TabSectionExpansion`](/documentation/SwiftUI/TabSectionExpansion/collapsed)

The section is initially collapsed in the sidebar.

[`static let expanded: TabSectionExpansion`](/documentation/SwiftUI/TabSectionExpansion/expanded)

The section is initially expanded in the sidebar.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

---

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)