Contents

init(label:onCompletion:)

Creates a suggestions picker within the given view.

Declaration

@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.

See Also

Creating a suggestions picker