---
title: "GroupedTabViewStyle | Explore SwiftUI"
description: "A tab view style that displays a tab bar that groups its tabs together. Learn how to use GroupedTabViewStyle in SwiftUI with visual code examples."
canonical_url: "https://exploreswiftui.com/library/tabview/groupedtabviewstyle"
meta:
  author: "Explore SwiftUI"
  "og:description": "A tab view style that displays a tab bar that groups its tabs together. Learn how to use GroupedTabViewStyle in SwiftUI with visual code examples."
  "og:image": "https://exploreswiftui.com/_og/d/c_Component%2Ctitle_GroupedTabViewStyle%2Cdescription_A%2Btab%2Bview%2Bstyle%2Bthat%2Bdisplays%2Ba%2Btab%2Bbar%2Bthat%2Bgroups%2Bits%2Btabs%2Btogether.%2Ccategory_TabView%2Cimage_~L2FwaS9pbWFnZXMvMTYwL3ZhcmlhbnRzLzUxND92PTE3OTAwNzM0Nzg4NDImcj0yJnc9NjQwJmg9NDgwJmY9cG5n%2CimageMode_fit%2CimagePosition_top%2CimageFrame_~ZmlsdGVyOiBkcm9wLXNoYWRvdygwIDAgMXB4IHJnYmEoMCwwLDAsMC4wNikpIGRyb3Atc2hhZG93KDAgLTEwcHggMjVweCByZ2JhKDM3LDk5LDIzNSwwLjE4KSk7%2Cprops_eyJwbGF0Zm9ybXMiOlsibWFjT1MiXX0%2Cp_Ii9saWJyYXJ5L3RhYnZpZXcvZ3JvdXBlZHRhYnZpZXdzdHlsZSI%2Cs_uFe_5_b4TLLYOHbt.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "GroupedTabViewStyle | Explore SwiftUI"
  "twitter:description": "A tab view style that displays a tab bar that groups its tabs together. Learn how to use GroupedTabViewStyle in SwiftUI with visual code examples."
  "twitter:image": "https://exploreswiftui.com/_og/d/c_Component%2Ctitle_GroupedTabViewStyle%2Cdescription_A%2Btab%2Bview%2Bstyle%2Bthat%2Bdisplays%2Ba%2Btab%2Bbar%2Bthat%2Bgroups%2Bits%2Btabs%2Btogether.%2Ccategory_TabView%2Cimage_~L2FwaS9pbWFnZXMvMTYwL3ZhcmlhbnRzLzUxND92PTE3OTAwNzM0Nzg4NDImcj0yJnc9NjQwJmg9NDgwJmY9cG5n%2CimageMode_fit%2CimagePosition_top%2CimageFrame_~ZmlsdGVyOiBkcm9wLXNoYWRvdygwIDAgMXB4IHJnYmEoMCwwLDAsMC4wNikpIGRyb3Atc2hhZG93KDAgLTEwcHggMjVweCByZ2JhKDM3LDk5LDIzNSwwLjE4KSk7%2Cprops_eyJwbGF0Zm9ybXMiOlsibWFjT1MiXX0%2Cp_Ii9saWJyYXJ5L3RhYnZpZXcvZ3JvdXBlZHRhYnZpZXdzdHlsZSI%2Cs_uFe_5_b4TLLYOHbt.png"
  "twitter:title": "GroupedTabViewStyle | Explore SwiftUI"
---

> Index of every page on this site: [llms.txt](https://exploreswiftui.com/llms.txt)

# **GroupedTabViewStyle**

A tab view style that displays a tab bar that groups its tabs together.

![GroupedTabViewStyle - Preview Not Available](https://exploreswiftui.com/api/images/160/variants/514?v=1790073478842&r=2&w=800&q=80&f=webp)

### **Platform Compatibility**

macOS 15.0+

### **Tags**

### **SwiftUI Code**

[ Docs](https://developer.apple.com/documentation/swiftui/groupedtabviewstyle)

```
TabView {
    Tab {
        Text("0")
    }


    Tab("1", systemImage: "1.circle") {
        Text("1")
    }


    Tab("2", image: "cats24x24") {
        Text("2")
    }

    Tab {
        Text("3")
    } label: {
        Label("3", systemImage: "3.circle")
    }
}
.tabViewStyle(.grouped)
```

### **Found an issue or have a suggestion?**

Created: April 11, 2026Updated: April 11, 2026

### **More TabView Components **

[**View all **](https://exploreswiftui.com/library/tabview)

![Collapse Sidebar Sections by Default - iPadOS - Landscape - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/259/variants/2039?v=1792566366133&r=2&w=412&q=75&f=webp)

### **Collapse Sidebar Sections by Default**

Collapses the section in the sidebar by default.

![Default Tab Bar Placement - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/239/variants/2069?v=1792681374978&r=2&w=412&q=75&f=webp)

### **Default Tab Bar Placement**

Specifies the preferred placement for the tabs of a TabView in the sidebarAdaptable style on platforms where the tab bar cannot adapt between different representations, and only one representation can be shown. For example, on iOS, it can enforce the sidebar on large-screen devices like the Pro Max, and iPhone Duo. This modifier has no effect on iPadOS.

![Default Collapsed Tab Section - iPadOS - Landscape - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/234/variants/341?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Default Collapsed Tab Section**

Sets the default expansion state for the section containing this tab to collapsed when displayed in the sidebar.

![Tab View Customization Behavior - iPadOS - Landscape - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/166/variants/669?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Tab View Customization Behavior**

Configures the customization behavior of customizable tab view content.

![Tab View Customization - iPadOS - Landscape - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/164/variants/671?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Tab View Customization**

Specifies the customizations to apply to the sidebar representation of the tab view.

![Tab View Side Bar Footer - iPadOS - Landscape - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/168/variants/735?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Tab View Side Bar Footer**

Adds a custom footer to the sidebar of a tab view.

![Tab View Side Bar Bottom Bar - iPadOS - Landscape - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/169/variants/707?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Tab View Side Bar Bottom Bar**

Adds a custom bottom bar to the sidebar of a tab view.

![Default Adaptable Tab Bar Placement - iPadOS - Landscape - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/170/variants/673?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Default Adaptable Tab Bar Placement**

Specifies the default placement for the tabs in a tab view using the adaptable sidebar style.

### **Explore Other Components **

[**Browse all **](https://exploreswiftui.com/)

![Sheet Size - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/137/variants/432?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Sheet Size**

Sets the available detents for the enclosing sheet.

![TabsPickerStyle - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/233/variants/182?v=1790073478842&r=2&w=412&q=75&f=webp)

### **TabsPickerStyle**

A picker style that presents options as segmented tabs. On macOS, this style produces a segmented picker with a visual treatment that distinguishes tab navigation from value selection. On iOS, tvOS, and visionOS, the visual appearance matches that of the standard standard .segmented style. On all supported platforms, VoiceOver announces options as tabs.

![Content Unavailable Search Text - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/3/variants/10?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Content Unavailable Search Text**

A pre-built placeholder for empty search results with search text

![NavigationLinkPickerStyle - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/181/variants/560?v=1790073478842&r=2&w=412&q=75&f=webp)

### **NavigationLinkPickerStyle**

A picker style represented by a navigation link that presents the options by pushing a List-style picker view.

![Title Toolbar Item Placement - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/95/variants/279?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Title Toolbar Item Placement**

Places content in the title area

![WheelDatePickerStyle - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/63/variants/73?v=1790073478842&r=2&w=412&q=75&f=webp)

### **WheelDatePickerStyle**

A date picker style that displays each component as columns in a scrollable wheel

![CheckboxToggleStyle - macOS - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/212/variants/622?v=1790073478842&r=2&w=412&q=75&f=webp)

### **CheckboxToggleStyle**

A toggle style that displays a checkbox followed by its label.

![EditButton - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/36/variants/239?v=1790073478842&r=2&w=412&q=75&f=webp)

### **EditButton**

A button that toggles the edit mode environment value

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://exploreswiftui.com/#website","@type":"WebSite","description":"A visual library for SwiftUI APIs, components, and modifiers","inLanguage":"en-US","name":"Explore SwiftUI","url":"https://exploreswiftui.com/","publisher":{"@id":"https://exploreswiftui.com/#identity"}},{"@id":"https://exploreswiftui.com/library/tabview/groupedtabviewstyle#webpage","@type":"WebPage","dateModified":"2026-04-11T13:01:21.606Z","datePublished":"2026-04-11T12:27:50.692Z","description":"A tab view style that displays a tab bar that groups its tabs together. Learn how to use GroupedTabViewStyle in SwiftUI with visual code examples.","name":"GroupedTabViewStyle","url":"https://exploreswiftui.com/library/tabview/groupedtabviewstyle","breadcrumb":{"@id":"https://exploreswiftui.com/library/tabview/groupedtabviewstyle#breadcrumb"},"isPartOf":{"@id":"https://exploreswiftui.com/#website"},"mainEntity":{"@id":"https://exploreswiftui.com/library/tabview/groupedtabviewstyle#article"},"potentialAction":[{"@type":"ReadAction","target":["https://exploreswiftui.com/library/tabview/groupedtabviewstyle"]}],"primaryImageOfPage":{"@id":"https://exploreswiftui.com/#logo"}},{"@id":"https://exploreswiftui.com/#identity","@type":"Organization","description":"A visual library for SwiftUI APIs, components, and modifiers","name":"Explore SwiftUI","url":"https://exploreswiftui.com","logo":{"@id":"https://exploreswiftui.com/#logo"},"sameAs":["https://x.com/Typ0genius","https://mastodon.social/@Typ0genius"]},{"@id":"https://exploreswiftui.com/library/tabview/groupedtabviewstyle#article","citation":"https://developer.apple.com/documentation/swiftui/groupedtabviewstyle","dateModified":"2026-04-11T13:01:21.606Z","datePublished":"2026-04-11T12:27:50.692Z","description":"A tab view style that displays a tab bar that groups its tabs together. Learn how to use GroupedTabViewStyle in SwiftUI with visual code examples.","headline":"GroupedTabViewStyle","inLanguage":"en-US","name":"GroupedTabViewStyle","thumbnailUrl":"https://exploreswiftui.com/api/images/160/variants/514?v=1790073478842&r=2","url":"https://exploreswiftui.com/library/tabview/groupedtabviewstyle","@type":["Article","TechArticle"],"about":{"@type":"Thing","name":"SwiftUI"},"author":{"@id":"https://exploreswiftui.com/#identity"},"hasPart":{"@id":"https://exploreswiftui.com/library/tabview/groupedtabviewstyle#source-code"},"image":{"@id":"https://exploreswiftui.com/#/schema/image/1"},"isPartOf":{"@id":"https://exploreswiftui.com/library/tabview/groupedtabviewstyle#webpage"},"mainEntityOfPage":{"@id":"https://exploreswiftui.com/library/tabview/groupedtabviewstyle#webpage"},"publisher":{"@id":"https://exploreswiftui.com/#identity"}},{"@id":"https://exploreswiftui.com/library/tabview/groupedtabviewstyle#source-code","@type":"SoftwareSourceCode","codeSampleType":"full example","description":"A tab view style that displays a tab bar that groups its tabs together. Learn how to use GroupedTabViewStyle in SwiftUI with visual code examples.","name":"GroupedTabViewStyle SwiftUI Example","programmingLanguage":"Swift","runtimePlatform":"SwiftUI","text":"TabView {\n    Tab {\n        Text(\"0\")\n    }\n\n\n    Tab(\"1\", systemImage: \"1.circle\") {\n        Text(\"1\")\n    }\n\n\n    Tab(\"2\", image: \"cats24x24\") {\n        Text(\"2\")\n    }\n\n    Tab {\n        Text(\"3\")\n    } label: {\n        Label(\"3\", systemImage: \"3.circle\")\n    }\n}\n.tabViewStyle(.grouped)","about":[{"@type":"Thing","name":"SwiftUI"},{"@type":"Thing","name":"TabView"},{"@type":"Thing","name":"GroupedTabViewStyle"}]},{"@id":"https://exploreswiftui.com/library/tabview/groupedtabviewstyle#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://exploreswiftui.com","position":1},{"@type":"ListItem","name":"TabView","item":"https://exploreswiftui.com/library/tabview","position":2},{"@type":"ListItem","name":"GroupedTabViewStyle","item":"https://exploreswiftui.com/library/tabview/groupedtabviewstyle","position":3}]},{"@id":"https://exploreswiftui.com/#logo","@type":"ImageObject","caption":"Explore SwiftUI","contentUrl":"https://exploreswiftui.com/apple-touch-icon.png","inLanguage":"en","url":"https://exploreswiftui.com/apple-touch-icon.png"},{"@id":"https://exploreswiftui.com/#/schema/image/1","@type":"ImageObject","contentUrl":"https://exploreswiftui.com/api/images/160/variants/514?v=1790073478842&r=2","inLanguage":"en","url":"https://exploreswiftui.com/api/images/160/variants/514?v=1790073478842&r=2"}]}
```