Open karlml opened 8 years ago
I figured out the first part myself. The NSNotification observer object has to change from Meteor to Meteor.database
NSNotificationCenter.defaultCenter().addObserver(self, selector: "databaseDidChange:", name: METDatabaseDidChangeNotification, object: Meteor.database)
have you been able to figure out the second part? for the change details?
Also, how do you parse the results?
We are trying to implement the Meteor-iOS framework in Swift and are attempting to translate from Objective-C. How can we get notified when changes occur to the collection? For some reason databaseDidChange does not fire when the collection is changed.
Also would it be possible to get a working Swift example for this method, it is so central to the functioning of the framework: