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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -