- Support Photo keyboard. (Camera Roll || All Photos)
- Support Number keyboard.
- Allow custom new keyboard.
- Can switch between keyboards.
- Allow change photo album.
To run the example project, clone the repo, and run pod install
from the Example directory first.
You must import NSPhotoLibraryUsageDescription
in Info.plist
in order to access Photo Library.
STKeyboard is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "STKeyboard"
- Active keyboard
let textField = UITextField()
textField.switchToSTKeyboard(withType: .default)
textField.switchToSTKeyboard(withType: .number)
textField.switchToSTKeyboard(withType: .photo)
- Create a new keyboard by inheriting from
STKeyboard
class NewCustomKeyboard: STKeyboard {
static let customKeyboard = NewCustomKeyboard()
}
Son Thai, [email protected]
STKeyboard is available under the MIT license. See the LICENSE file for more info.
Copyright (c) 2017 Son Thai ([email protected]).
See the LICENSE file for more info.