---
title: "sectionActions(content:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/tabcontent/sectionactions(content:)"
---

# sectionActions(content:)

Adds custom actions to a tab section.

## Declaration

```swift
nonisolated func sectionActions<Content>(@ContentBuilder content: () -> Content) -> some TabContent<Self.TabValue> where Content : View

```

## Discussion

Discussion On iOS, the actions are displayed after the other tabs in the section. On macOS, the actions are displayed when a user hovers over the section. Applying this modifier to a single Tab has no effect. The following example adds an ‘Add’ button to the ‘Categories’ section. TabView {     Tab("Home", systemImage: "house") {         HomeView()     }

Tab("Alerts", systemImage: "bell") {         AlertsView()     }

TabSection("Categories") {         Tab("Climate", systemImage: "fan") {             ClimateView()         }

Tab("Lights", systemImage: "lightbulb") {             LightsView()         }     }     .sectionActions {         Button("Add Category", systemImage: "plus") { }     } } .tabViewStyle(.sidebarAdaptable)

## See Also

### Configuring tab content

- [badge(_:)](swiftui/tabcontent/badge(_:).md)
- [contextMenu(menuItems:)](swiftui/tabcontent/contextmenu(menuitems:).md)
- [customizationBehavior(_:for:)](swiftui/tabcontent/customizationbehavior(_:for:).md)
- [customizationID(_:)](swiftui/tabcontent/customizationid(_:).md)
- [defaultSectionExpansion(_:)](swiftui/tabcontent/defaultsectionexpansion(_:).md)
- [TabSectionExpansion](swiftui/tabsectionexpansion.md)
- [defaultVisibility(_:for:)](swiftui/tabcontent/defaultvisibility(_:for:).md)
- [disabled(_:)](swiftui/tabcontent/disabled(_:).md)
- [draggable(_:)](swiftui/tabcontent/draggable(_:).md)
- [dropDestination(for:action:)](swiftui/tabcontent/dropdestination(for:action:).md)
- [help(_:)](swiftui/tabcontent/help(_:).md)
- [hidden(_:)](swiftui/tabcontent/hidden(_:).md)
- [popover(isPresented:attachmentAnchor:arrowEdge:content:)](swiftui/tabcontent/popover(ispresented:attachmentanchor:arrowedge:content:).md)
- [popover(item:attachmentAnchor:arrowEdge:content:)](swiftui/tabcontent/popover(item:attachmentanchor:arrowedge:content:).md)
- [springLoadingBehavior(_:)](swiftui/tabcontent/springloadingbehavior(_:).md)
