I used to be questioning the right way to make an intent that asks the variety of pages of the e-book that the person needs to learn.
You’ll be able to’t make an intent for each one of many pages so there needs to be a greater means of doing it.
Right here is the code for a fundamental intent:
struct SiriSearchPage: AppIntent {
static var title: LocalizedStringResource = "Web page"
static var description = IntentDescription("Searches the web page")
static var openAppWhenRun: Bool = true
static var parameterSummary: some ParameterSummary {
Abstract("")
}
@MainActor
func carry out() async throws -> some IntentResult {
return .consequence()
}
}