To run the example project, clone the repo, and run
pod install from the Example directory first.
KeyboardLock( withView: containerView, andLockType: .BottomConstraint ).lock()
|Lock Type||Description||Constraint Search Criteria|
||The bottom constraint will be moved up based on the height of the keyboard at the end of it's animation cycle.||
||The height of the constraint will be shortened based on the height of the keyboard at the end of it's animation cycle.||
||The Y origin point of the views frame will be moved up based on the height of the keyboard at the end of it's animation cycle.||None|
- When using
.HeightConstraint, you can either pass the constraint you wish to update manually using
andConstraint:in the constructor, or you can leave it blank and the system will attempt to find the constraint itself. If it cannot find the proper constraint, a warning message will be sent through
- You can unlock a view from the keyboard using the
.unlock()member function of the associated
KeyboardLock is available through CocoaPods. To install it, simply add the following line to your Podfile:
nathan-fiscaletti, [email protected]
KeyboardLock is available under the MIT license. See the LICENSE file for more info.