NACCGetCleantimeSummaryAppIntent

struct NACCGetCleantimeSummaryAppIntent : AppIntent

This intent calculates the cleantime, based on an input cleandate, and returns a string, summarizing it.

This is meant for a “faceless” query, where the user is told their cleantime, without opening the app.

  • The intent title.

    Declaration

    Swift

    static var title: LocalizedStringResource
  • The intent description.

    Declaration

    Swift

    static let description: IntentDescription
  • This is the input cleandate, as date components.

    Declaration

    Swift

    @IntentParameter
    var cleanDate: DateComponents? { get nonmutating set }
  • perform() Asynchronous

    This calculates the cleantime, and creates a text string, with the summary.

    Declaration

    Swift

    func perform() async throws -> some ReturnsValue<String> & ProvidesDialog