SimpleKeyboardManager 0.2.0

SimpleKeyboardManager 0.2.0

mogi 维护。



  • 作者
  • fbdlrghks123

KeyboardManager

Swift

通过 UITextField 或 UITextView 在 UIScrollView 中抬起键盘时自动移动滚动位置

TextView 支持滚动到光标位置

在触摸屏幕时自动隐藏键盘

需要

Swift5, RxSwift5

使用

仅需要在一行 AppDelegate 中添加代码

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
  KeyboardManager.shared()
}