打字员:适用于iOS应用的Swift UIKit键盘管理器 源码

qqwish85216 5 0 ZIP 2021-03-24 11:03:30

打字员 Typist是适用于iOS应用的小型嵌入式Swift UIKit键盘管理器。 它可以帮助您管理键盘的屏幕显示和行为,而无需通知中心和Objective-C。 用法 声明在什么事件上应该发生什么,并监听键盘事件的start() 。 而已。 let keyboard = Typist. shared // use `Typist()` whenever you can, see note on singleton usage below func configureKeyboard () { keyboard . on ( event : . didShow ) { (options) in print ( " New Keyboard Frame is \( options. endFrame ) . " ) }

用户评论
请输入评论内容
评分:
暂无评论