Created
November 10, 2015 03:59
-
-
Save igroomgrim/a6a9ba0bf4f0805b3d51 to your computer and use it in GitHub Desktop.
Filtering realm object with NSPredicate.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let predicate = NSPredicate(format: "done == %@", NSNumber(bool: true)) | |
let tasks = realm.objects(TDTask).filter(predicate) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment