dimanche 24 juillet 2016

Firebase + iOS + Swift - transient and boolean fields?

I'm porting my Firebase project from android to iOS using Swift 3 (yeah, young and hip). The first thing, that makes me wonder - data types for database. Integer, Float and Double replaced by NSNumber. Bool is missing 0_o. Really strange. But what confusing me the most - missing transient keyword. In android I used it like this

public transient boolean notify = false;

And so, do I can pass custom object w/o transient fields as value to Firebase? Or I must do it in stupid way - converting Object to NSDictionary? Thanks in advance

Aucun commentaire:

Enregistrer un commentaire