Skip to content

Commit 28eb398

Browse files
committed
Variable replacing to BehaviorRelay
1 parent 28b375b commit 28eb398

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/RxKeyboard/RxKeyboard.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public class RxKeyboard: NSObject, RxKeyboardType {
5757
width: UIScreen.main.bounds.width,
5858
height: 0
5959
)
60-
let frameVariable = Variable<CGRect>(defaultFrame)
60+
let frameVariable = BehaviorRelay<CGRect>(value: defaultFrame)
6161
self.frame = frameVariable.asDriver().distinctUntilChanged()
6262
self.visibleHeight = self.frame.map { UIScreen.main.bounds.height - $0.origin.y }
6363
self.willShowVisibleHeight = self.visibleHeight

0 commit comments

Comments
 (0)