Closed g-enius closed 4 years ago
Any solution yet?
Realm.UpdatePolicy.error
realm.add(object, update: .all)
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.
Closing this, cause issue was resolved!
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.