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) -> NSPredicateParameters
- 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
predicateForEvaluatingTriggerOccurring(beforeSignificantEvent:)predicateForEvaluatingTriggerOccurring(afterSignificantEvent:)predicate(forEvaluatingTriggerOccurringBetweenSignificantEvent:secondSignificantEvent:)predicateForEvaluatingTrigger(occurringBefore:)predicateForEvaluatingTrigger(occurringOn:)predicateForEvaluatingTrigger(occurringAfter:)predicateForEvaluatingTrigger(_:relatedBy:toValue:)predicateForEvaluatingTrigger(withPresence:)HMCharacteristicKeyPathHMCharacteristicValueKeyPathHMPresenceKeyPath