We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3be0d1 commit df40299Copy full SHA for df40299
Sources/RxKeyboard.swift
@@ -104,8 +104,8 @@ public class RxKeyboard: NSObject {
104
105
// merge into single sequence
106
Observable.of(didPan, willChangeFrame, willHide).merge()
107
- .bindTo(frameVariable)
108
- .addDisposableTo(self.disposeBag)
+ .bind(to: frameVariable)
+ .disposed(by: self.disposeBag)
109
110
// gesture recognizer
111
self.panRecognizer.delegate = self
@@ -115,7 +115,7 @@ public class RxKeyboard: NSObject {
115
.subscribe(onNext: { _ in
116
UIApplication.shared.windows.first?.addGestureRecognizer(self.panRecognizer)
117
})
118
119
}
120
121
0 commit comments