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

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -