---
title: "init(_:image:selection:content:currentValueLabel:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/picker/init(_:image:selection:content:currentvaluelabel:)"
---

# init(_:image:selection:content:currentValueLabel:)

Creates a picker that accepts a custom current value label and generates its label from a localized string key and image resource

## Declaration

```swift
nonisolated init(_ titleKey: LocalizedStringKey, image: ImageResource, selection: Binding<SelectionValue>, @ContentBuilder content: () -> Content, @ContentBuilder currentValueLabel: () -> some View)
```

## Parameters

- `titleKey`: A localized string key that describes the purpose of selecting an option.
- `image`: The name of the image resource to lookup.
- `selection`: A binding to a property that determines the currently-selected option.
- `content`: A view that contains the set of options.
- `currentValueLabel`: A view that represents the current value of the picker.

## Discussion

Discussion This initializer creates a Text view on your behalf, and treats the localized key similar to init(_:tableName:bundle:comment:). See Text for more information about localizing strings.
