在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:RxSwiftCommunity/RxKeyboard开源软件地址:https://github.com/RxSwiftCommunity/RxKeyboard开源编程语言:Swift 90.6%开源软件介绍:RxKeyboardRxKeyboard provides a reactive way of observing keyboard frame changes. Forget about keyboard notifications. It also perfectly works with Getting StartedRxKeyboard provides two /// An observable keyboard frame.
let frame: Driver<CGRect>
/// An observable visible height of keyboard. Emits keyboard height if the keyboard is visible
/// or `0` if the keyboard is not visible.
let visibleHeight: Driver<CGFloat>
/// Same with `visibleHeight` but only emits values when keyboard is about to show. This is
/// useful when adjusting scroll view content offset.
let willShowVisibleHeight: Driver<CGFloat> Use RxKeyboard.instance Subscribe RxKeyboard.instance.frame
.drive(onNext: { frame in
print(frame)
})
.disposed(by: disposeBag) Tips and Tricks |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论