swift - What is RLMCollection replacement in RealmSwift -
var objects:rlmcollection! if selectedobject != nil { objects = selectedobject.childobjects rlmarray } else { objects = realmobject.objectsinrealm(realm, "isfavourite == 1") } println(couplets.objectatindex(indexpath.row) as! realmobject)
i had senario, won't know whether need work rlmarray or rlmresults, used rlmcollection.
how can achieve same in realmswift 0.93.1
in general, in swift it's enough work collectiontype
, defines subscripting, enumeration, , many of other 'array-like' methods results
, list
expose. (though interested in adding realmcollectiontype
protocol, haven't gotten around yet!)
Comments
Post a Comment