Easiest way to set custom inputview to all textFields globally

297 views Asked by At

I created a custom input view for the App I'm currently working on, I can assign this keyboard to a textField by doing:

textField.inputView = myCustomKeyboard as! UIView

Now I just want to switch out all inputViews with my custom inputView, is there a simpler way to do this without having to set the inputView on all the textFields separately in my app?

1

There are 1 answers

1
Matloob Hasnain On BEST ANSWER
[[UITextField appearance] setInputView:customeView];

or swift:

UITextField.appearance().inputView = customeView

Please create custom view and add this line into app delegate did finish launching option