---
title: "init(selection:label:content:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/picker/init(selection:label:content:)"
---

# init(selection:label:content:)

Creates a picker that displays a custom label.

## Declaration

```swift
nonisolated init(selection: Binding<SelectionValue>, label: Label, @ContentBuilder content: () -> Content)
```

## Parameters

- `selection`: A binding to a property that determines the currently-selected option.
- `label`: A view that describes the purpose of selecting an option.
- `content`: A view that contains the set of options.
