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()
}
You're likely targeting the build for the simulator, and there's some caveats around that. This thread discussing that detail is still relevant. Please additionally open a bug report regarding this and post the FB number here, as the workarounds in that thread should not be needed.
— Ed Ford, DTS Engineer