import Foundation | |
import RealmSwift | |
class FooObject { | |
let context: StorageContext | |
init(context: StorageContext) { | |
self.context = context | |
} | |
func dummyMethod(completion: @escaping ((Bool) -> Void)) { | |
self.context.fetch(Object.self, predicate: nil, sorted: nil) { (objects) in | |
(objects.count > 10) ? completion(true) : completion(false) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment