小编Gau*_*rav的帖子

Reference to generic type 'Map' requires arguments in <...> - Swift

After updating the Xcode to 12.5 and updating all the pods , i start getting the above error in all files where mapping is happening

Reference to generic type 'Map' requires arguments in <...> Insert '<<#Key: _MapKey#>, <#Value: RealmCollectionValue#>>'

class DayPartData: Object, Mappable {
    @objc dynamic var code = 0
    @objc dynamic var text : String?

    required convenience init?(map: Map) {
        self.init()
    }

    func mapping(map: Map) {
        code <- map["code"]
        text <- map["text"]
    }
}
Run Code Online (Sandbox Code Playgroud)

am I missing something here?

generics realm ios swift objectmapper

2
推荐指数
1
解决办法
816
查看次数

标签 统计

generics ×1

ios ×1

objectmapper ×1

realm ×1

swift ×1