<!--
{
  "availability" : [
    "iOS: 17.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "JournalingSuggestions",
  "identifier" : "/documentation/JournalingSuggestions/JournalingSuggestionsPicker/init(label:onCompletion:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Journaling Suggestions"
    ],
    "preciseIdentifier" : "s:21JournalingSuggestions0aB6PickerV5label12onCompletionACyxGxyXE_yAA0A10SuggestionVYactcfc"
  },
  "title" : "init(label:onCompletion:)"
}
-->

# init(label:onCompletion:)

Creates a suggestions picker within the given view.

```
@MainActor @preconcurrency init(@ViewBuilder label: () -> Label, onCompletion: @escaping (JournalingSuggestion) async -> Void)
```

## Parameters

`label`

A view that describes the suggestion picker’s purpose in the context of your app.

`onCompletion`

Code that you supply, which processes any suggestions that a person chooses in the picker.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)