As of RxSwift4, Variable is moved to Deprecated.swift marking the possible deprecation of Variable in future. An alternate proposed to
Variable
Deprecated.swift
How about this kind of extension:
extension BehaviorRelay { var val: Element { get { value } set { accept(newValue) } } }
Then use it as you were using the Variable, but instead of calling value, call val:
value
val
myFilter.val.append(newModel)