jobandtalent / AnimatedTextInput

Animated UITextField and UITextView replacement for iOS
MIT License
760 stars 128 forks source link

Add keyboardAppearnce property #93

Closed Kofktu closed 6 years ago

Kofktu commented 6 years ago

Hello, I want to change the keyboard color because the app's theme is dark

open class AnimatedTextInput: UIControl {
    open var keyboardAppearance: UIKeyboardAppearance
}
public protocol TextInput {
    func changeKeyboardAppearance(with newKeyboardAppearance: UIKeyboardAppearance)
}
Kofktu commented 6 years ago

@victorBaro define a var keyboardApperance in the TextInput (instead of function)

And Because in both UITextField and UITextView keyboardAppearance property changed property name keyboardAppearance -> currentKeyboardApperance

public protocol TextInput {
    var currentKeyboardAppearance: UIKeyboardAppearance { get set }
}