sergdort / CleanArchitectureRxSwift

Example of Clean Architecture of iOS app using RxSwift
MIT License
3.91k stars 495 forks source link

Realm Object has no member 'build' #46

Closed HaythemBenAicha closed 6 years ago

HaythemBenAicha commented 6 years ago

Type 'RMProduct' has no member 'build'

extension Product: RealmRepresentable {
    func asRealm() -> RMProduct {
        return RMProduct.build{ object in
            object.name = name
        }
    }
}

Can someone help to understand what is wrong ?

sergdort commented 6 years ago

Hi, @HaythemBenAicha build is an extension method realm does not have it :) Please see implementation for more details

sergdort commented 6 years ago

Seems to be resolved ¯_(ツ)_/¯