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

# init(selection:content:label:)

Creates a picker that displays a custom label.

## Declaration

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

## Parameters

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

## See Also

### Creating a picker

- [init(_:selection:content:)](swiftui/picker/init(_:selection:content:).md)
