I\'m using Alamofire, Objectmapper, Realm and everything is working beside one thing: I can\'t map nested objects.
class Voting: Object, Mappable {
dyna
The problem you're seeing is due to ObjectMapper having no knowledge of Realm's List
type. It is not aware that it is a collection type, and that it must be mutated in place rather than being assigned to. You can see discussion of this, including some suggested workarounds, in ObjectMapper GitHub issue #143.
Note also that any List
properties on Object
subclasses should be declared with let
rather than var
.