To run the example project, clone the repo, and run pod install
from the Example directory first.
- Min swift 4.2
- XCode 10
- iOS 12
ACKeyboard is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'ACKeyboard'
let acKeyboard = ACKeyboard()
acKeyboard
.on(event: .willShow) { [weak self] option in
self?.submitButtonLayoutIfNeeded(by: option.endKeyboardFrame.height.supportSafeArea)
}
.on(event: .willHide) { [weak self] option in
self?.resetLayoutSubmitButton()
}
.autoHideKeyboard(onTap: view)
.start()
Agus Cahyono, cahyo.mamen@gmail.com
ACKeyboard is available under the MIT license. See the LICENSE file for more info.