swift - Is it possible to make a generic Realm Results Object? -
i trying replicate nsfetchedresults controller realm backing. problem realmswift framework, cannot make generic results object. wants specific type.
var objects = results<object> = realm().objects(object)
compiles, crashes when controller subclass presented.
i'm not sure how code compiles there 2 assignments in statement:
var objects = results<object> = realm().objects(object)
calling realm().objects(object)
returns generic results
, specialized on object
, results
generic.
Comments
Post a Comment