I followed this tutorial to add JournalingSuggestions API, but it keeps showing me No such module 'JournalingSuggestions'. How can I fix this?
import SwiftUI
import JournalingSuggestions
struct ContentView: View {
@State var suggestionTitle: String? = nil
var body: some View {
VStack {
JournalingSuggestionsPicker {
Text("Select Journaling Suggestion")
}
onCompletion: { suggestion in
suggestionTitle = suggestion.title
}
Text(suggestionTitle ?? "")
}
.padding()
}
}
#Preview {
ContentView()
}
Selecting any option will automatically load the page