You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10
Original file line number
Diff line number
Diff line change
@@ -89,6 +89,16 @@ RxKeyboard.instance.frame
89
89
90
90
>**Note**: In real world, you should use `setNeedsLayout()` and `layoutIfNeeded()` with animation block. See the [example project](https://github.com/RxSwiftCommunity/RxKeyboard/blob/master/Example/Sources/ViewControllers/MessageListViewController.swift#L92-L105) for example.
91
91
92
+
-<a name="tip-app-extension" href="#tip-app-extension">🔗</a>**I want to use RxKeyboard in App Extension.**
93
+
94
+
App Extesion doesn't allow the `UIApplication.shared` API so the pan gesture recognizer cannot automatically track the interactive keybord dismissing. You have to do something manually in the App Extension target: setting `gestureView`.
95
+
96
+
```swift
97
+
// ShareViewController.swift
98
+
RxKeyboard.instance.gestureView=self.view// add this line on `viewDidLoad()`
99
+
RxKeyboard.instance.visibleHeight.drive(...)
100
+
```
101
+
92
102
- Anything else? Please open an issue or make a Pull Request.
0 commit comments