ButtonOnKeyboard
"ButtonOnKeyboard" is used when the button position must change depending on the keyboard. Available in both basic and notch designs. It is also available for UIButton, as well as UIView.
Getting Started
In viewDidLoad(), stores the default size of the button.
Whenever the keyboard state changes, it calls button.bk_onKeyboard().
If UITextField is not visible by UIButton, add the scrollView parameter to "bk_onKeyboard()".
Demo
Example
Requirements
- Swift 5.0
- iOS 11.0+
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
Installation
ButtonOnKeyboard is available through CocoaPods. To install
it, simply add the following line to your Podfile:
Author
magicmon, sagun25si@gmail.com