Contents

predicateForEvaluatingTriggerOccurringBetweenDate(with:secondDateWith:)

Creates a predicate that evaluates whether the event occurred between the specified times.

Declaration

class func predicateForEvaluatingTriggerOccurringBetweenDate(with firstDateComponents: DateComponents, secondDateWith secondDateWithComponents: DateComponents) -> NSPredicate

Parameters

  • firstDateComponents:

    Date components that represent the first time boundary to compare to the execution time.

  • secondDateWithComponents:

    Date components that represent the second time boundary to compare to the execution time.

Return Value

A predicate object that represents a condition to evaluate before executing the scene.

See Also

Creating predicates