There was an error while loading. Please reload this page.
1 parent 83f4d2d commit 85d0083Copy full SHA for 85d0083
1 file changed
CareKitStore/CareKitStore/Structs/Queries/OCKEventQuery.swift
@@ -45,6 +45,9 @@ public struct OCKEventQuery: Equatable {
45
/// The tags of tasks to match events against.
46
public var taskTags: [String] = []
47
48
+ /// Determines if tasks with no events should be included in the query results or not. False be default.
49
+ public var excludesTasksWithNoEvents = false
50
+
51
/// Initialize a new `OCKEventQuery` by specifying the start and end dates.
52
///
53
/// - Parameters:
@@ -68,6 +71,7 @@ public struct OCKEventQuery: Equatable {
68
71
taskQuery.ids = taskIDs
69
72
taskQuery.groupIdentifiers = taskGroupIdentifiers
70
73
taskQuery.tags = taskTags
74
+ taskQuery.excludesTasksWithNoEvents = excludesTasksWithNoEvents
75
return taskQuery
76
}
77
0 commit comments