WIP: objc utilities

This commit is contained in:
John Rommel Estropia
2016-06-19 02:40:25 +09:00
parent 3d5c4f8121
commit e5a199489c
19 changed files with 913 additions and 177 deletions

View File

@@ -158,6 +158,17 @@ public final class ListMonitor<T: NSManagedObject>: Hashable {
]
}
/**
Checks if the `ListMonitor` has at least one section
- returns: `true` if at least one section exists, `false` otherwise
*/
@warn_unused_result
public func hasSections() -> Bool {
return self.sections().count > 0
}
/**
Checks if the `ListMonitor` has at least one object in any section.