RxSwiftCommunity / RxRealm

RxSwift extension for RealmSwift's types
MIT License
1.15k stars 263 forks source link

Need to upgrade to depend on RealmSwift 3.17 rather than still 3.14 #128

Closed g-enius closed 4 years ago

g-enius commented 4 years ago

Getting warnings for public func add(update: Bool = false, onError: ((O?, Error) -> Void)? = nil) -> AnyObserver

Warning: 'add(_:update:)' is deprecated: Pass .error, .modified or .all rather than a boolean. .error is equivalent to false and .all is equivalent to true.

eharo2 commented 4 years ago

Any solution yet?

vavlev commented 4 years ago

Realm.UpdatePolicy.error

Leonif commented 4 years ago

realm.add(object, update: .all)

fllaryora commented 4 years ago

Thanks @Leonif , That solve my problem. Took me a while the meaning of your code be cause I have just come from goolge to this page.

M0rtyMerr commented 4 years ago

Closing this, cause issue was resolved!