journalingSuggestionsPicker(isPresented:journalingSuggestionToken:onCompletion:)
Presents a visual picker interface that contains events and images that a person can select to retrieve more information.
Declaration
@MainActor @preconcurrency func journalingSuggestionsPicker(isPresented: Binding<Bool>, journalingSuggestionToken: JournalingSuggestionPresentationToken?, onCompletion: @escaping (JournalingSuggestion) async -> Void) -> some View
Parameters
- isPresented:
A binding to a
Boolvalue that determines whether to show the picker. - journalingSuggestionToken:
A
JournalingSuggestionPresentationTokenstruct to determine the content shown in the picker. - onCompletion:
Code that you supply, which processes any suggestions that a person may choose in the picker.
Discussion
For more information about the Journaling Suggestions picker, see: doc:presenting-the-suggestions-picker-and-processing-a-selection.