---
title: "Horizontal Radio Group Layout | Explore SwiftUI"
description: "Sets the style for radio group style pickers within this view to be horizontally positioned with the radio buttons inside the layout"
canonical_url: "https://exploreswiftui.com/library/picker/horizontal-radio-group-layout"
meta:
  author: "Explore SwiftUI"
  "og:description": "Sets the style for radio group style pickers within this view to be horizontally positioned with the radio buttons inside the layout"
  "og:image": "https://exploreswiftui.com/_og/d/c_Component%2Ctitle_Horizontal%2BRadio%2BGroup%2BLayout%2Cdescription_Sets%2Bthe%2Bstyle%2Bfor%2Bradio%2Bgroup%2Bstyle%2Bpickers%2Bwithin%2Bthis%2Bview%2Bto%2Bbe%2Bhorizontally%2Bpositioned%2Bwith%2Bthe%2Bradio%2Bbuttons%2Binside%2Bthe%2Blayout.%2Ccategory_Picker%2Cimage_~L2FwaS9pbWFnZXMvMTg3L3ZhcmlhbnRzLzU4OD92PTE3OTAwNzM0Nzg4NDImcj0yJnc9NjQwJmg9NDgwJmY9cG5n%2CimageMode_fit%2CimagePosition_center%2CimageFrame_~ZmlsdGVyOiBkcm9wLXNoYWRvdygwIDAgMXB4IHJnYmEoMCwwLDAsMC4wNikpIGRyb3Atc2hhZG93KDAgLTEwcHggMjVweCByZ2JhKDM3LDk5LDIzNSwwLjE4KSk7%2Cprops_eyJwbGF0Zm9ybXMiOlsibWFjT1MiXX0%2Cp_Ii9saWJyYXJ5L3BpY2tlci9ob3Jpem9udGFsLXJhZGlvLWdyb3VwLWxheW91dCI%2Cs_X3y3WBSgZma2tQmu.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Horizontal Radio Group Layout | Explore SwiftUI"
  "twitter:description": "Sets the style for radio group style pickers within this view to be horizontally positioned with the radio buttons inside the layout"
  "twitter:image": "https://exploreswiftui.com/_og/d/c_Component%2Ctitle_Horizontal%2BRadio%2BGroup%2BLayout%2Cdescription_Sets%2Bthe%2Bstyle%2Bfor%2Bradio%2Bgroup%2Bstyle%2Bpickers%2Bwithin%2Bthis%2Bview%2Bto%2Bbe%2Bhorizontally%2Bpositioned%2Bwith%2Bthe%2Bradio%2Bbuttons%2Binside%2Bthe%2Blayout.%2Ccategory_Picker%2Cimage_~L2FwaS9pbWFnZXMvMTg3L3ZhcmlhbnRzLzU4OD92PTE3OTAwNzM0Nzg4NDImcj0yJnc9NjQwJmg9NDgwJmY9cG5n%2CimageMode_fit%2CimagePosition_center%2CimageFrame_~ZmlsdGVyOiBkcm9wLXNoYWRvdygwIDAgMXB4IHJnYmEoMCwwLDAsMC4wNikpIGRyb3Atc2hhZG93KDAgLTEwcHggMjVweCByZ2JhKDM3LDk5LDIzNSwwLjE4KSk7%2Cprops_eyJwbGF0Zm9ybXMiOlsibWFjT1MiXX0%2Cp_Ii9saWJyYXJ5L3BpY2tlci9ob3Jpem9udGFsLXJhZGlvLWdyb3VwLWxheW91dCI%2Cs_X3y3WBSgZma2tQmu.png"
  "twitter:title": "Horizontal Radio Group Layout | Explore SwiftUI"
---

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

# **Horizontal Radio Group Layout**

Sets the style for radio group style pickers within this view to be horizontally positioned with the radio buttons inside the layout.

![Horizontal Radio Group Layout - Preview Not Available](https://exploreswiftui.com/api/images/187/variants/588?v=1790073478842&r=2&w=800&q=80&f=webp)

### **Platform Compatibility**

macOS 10.15+

### **Tags**

### **SwiftUI Code**

[ Docs](<https://developer.apple.com/documentation/swiftui/view/horizontalradiogrouplayout()>)

```
let picker = Picker(selection: $selection) {
    Text("1")
        .tag("1")
    Section("Bar") {
        Text("2")
            .tag("2")
    }
    Label("3", systemImage: "3.circle")
        .tag("3")
} label: {
    Label("Foo", systemImage: "hand.tap")
    Text("Bar")
} currentValueLabel: {
    Text("Selected: \(selection)")
}
.pickerStyle(.radioGroup)

picker

picker
    .horizontalRadioGroupLayout()
```

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

Created: April 5, 2026Updated: April 5, 2026

### **More Picker Components **

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

![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.

![Wheel Picker Item Height - watchOS - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/188/variants/587?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Wheel Picker Item Height**

Sets the default wheel-style picker item height.

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

### **WheelPickerStyle**

A picker style that presents the options in a scrollable wheel that shows the selected option and a few neighboring options.

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

### **SegmentedPickerStyle**

A picker style that presents the options in a segmented control. Use this style when there are two to five options. Consider using menu when there are more than five options.

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

### **PalettePickerStyle**

A picker style that presents the options as a row of compact elements. When used outside of menus, this style is rendered as a segmented picker. If that is the intended usage, consider segmented instead.

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

### **RadioGroupPickerStyle**

A picker style that presents the options as a group of radio buttons.

![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.

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

### **MenuPickerStyle**

A picker style that presents the options as a menu when the user presses a button, or as a submenu when nested within a larger menu.

### **Explore Other Components **

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

![Toolbar Vertical Edge - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/254/variants/1863?v=1790589836833&r=2&w=412&q=75&f=webp)

### **Toolbar Vertical Edge**

This value reflects the system’s preferred edge for the vertical bar in the current context, regardless of whether a vertical bar is currently visible. Use it to position custom bars or other UI relative to the system’s bar placement.

![Fitted Sheet Sizing - iPadOS - Landscape - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/143/variants/474?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Fitted Sheet Sizing**

Sets the sizing of the containing presentation. This does not have any effect on smaller devices like iPhone and Apple Watch. On macOS, fitted is the default.

![Edit Button - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/130/variants/367?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Edit Button**

A button that toggles the edit mode environment value.

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

### **DatePicker Components **

A date picker with only one displayed component

![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.

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

### **Context Menu**

Adds a context menu to a view.

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

### **PaletteControlGroupStyle**

A control group style that presents its content as a palette.

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

### **GroupBox With Label**

A GroupBox with Label

```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/picker/horizontal-radio-group-layout#webpage","@type":"WebPage","dateModified":"2026-04-05T08:13:26.620Z","datePublished":"2026-04-05T08:13:26.620Z","description":"Sets the style for radio group style pickers within this view to be horizontally positioned with the radio buttons inside the layout","name":"Horizontal Radio Group Layout","url":"https://exploreswiftui.com/library/picker/horizontal-radio-group-layout","breadcrumb":{"@id":"https://exploreswiftui.com/library/picker/horizontal-radio-group-layout#breadcrumb"},"isPartOf":{"@id":"https://exploreswiftui.com/#website"},"mainEntity":{"@id":"https://exploreswiftui.com/library/picker/horizontal-radio-group-layout#article"},"potentialAction":[{"@type":"ReadAction","target":["https://exploreswiftui.com/library/picker/horizontal-radio-group-layout"]}],"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/picker/horizontal-radio-group-layout#article","citation":"https://developer.apple.com/documentation/swiftui/view/horizontalradiogrouplayout()","dateModified":"2026-04-05T08:13:26.620Z","datePublished":"2026-04-05T08:13:26.620Z","description":"Sets the style for radio group style pickers within this view to be horizontally positioned with the radio buttons inside the layout","headline":"Horizontal Radio Group Layout","inLanguage":"en-US","name":"Horizontal Radio Group Layout","thumbnailUrl":"https://exploreswiftui.com/api/images/187/variants/588?v=1790073478842&r=2","url":"https://exploreswiftui.com/library/picker/horizontal-radio-group-layout","@type":["Article","TechArticle"],"about":{"@type":"Thing","name":"SwiftUI"},"author":{"@id":"https://exploreswiftui.com/#identity"},"hasPart":{"@id":"https://exploreswiftui.com/library/picker/horizontal-radio-group-layout#source-code"},"image":{"@id":"https://exploreswiftui.com/#/schema/image/1"},"isPartOf":{"@id":"https://exploreswiftui.com/library/picker/horizontal-radio-group-layout#webpage"},"mainEntityOfPage":{"@id":"https://exploreswiftui.com/library/picker/horizontal-radio-group-layout#webpage"},"publisher":{"@id":"https://exploreswiftui.com/#identity"}},{"@id":"https://exploreswiftui.com/library/picker/horizontal-radio-group-layout#source-code","@type":"SoftwareSourceCode","codeSampleType":"full example","description":"Sets the style for radio group style pickers within this view to be horizontally positioned with the radio buttons inside the layout","name":"Horizontal Radio Group Layout SwiftUI Example","programmingLanguage":"Swift","runtimePlatform":"SwiftUI","text":"let picker = Picker(selection: $selection) {\n    Text(\"1\")\n        .tag(\"1\")\n    Section(\"Bar\") {\n        Text(\"2\")\n            .tag(\"2\")\n    }\n    Label(\"3\", systemImage: \"3.circle\")\n        .tag(\"3\")\n} label: {\n    Label(\"Foo\", systemImage: \"hand.tap\")\n    Text(\"Bar\")\n} currentValueLabel: {\n    Text(\"Selected: \\(selection)\")\n}\n.pickerStyle(.radioGroup)\n\npicker\n\npicker\n    .horizontalRadioGroupLayout()","about":[{"@type":"Thing","name":"SwiftUI"},{"@type":"Thing","name":"Picker"},{"@type":"Thing","name":"Horizontal Radio Group Layout"}]},{"@id":"https://exploreswiftui.com/library/picker/horizontal-radio-group-layout#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://exploreswiftui.com","position":1},{"@type":"ListItem","name":"Picker","item":"https://exploreswiftui.com/library/picker","position":2},{"@type":"ListItem","name":"Horizontal Radio Group Layout","item":"https://exploreswiftui.com/library/picker/horizontal-radio-group-layout","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/187/variants/588?v=1790073478842&r=2","inLanguage":"en","url":"https://exploreswiftui.com/api/images/187/variants/588?v=1790073478842&r=2"}]}
```