Sunday, March 19, 2023
HomeiOS developmentios - How do I add a customized button to the SystemKeyboard...

ios – How do I add a customized button to the SystemKeyboard supplied within the KeyboardKit library?


What I wish to do is to exchange the AutocompleteToolbar space of the keyboard with a customized button of my alternative. The KeyboardKit library offers a SystemKeyboard that mimics the default iOS keyboard.
I’ve tried studying the documentation supplied right here the place the next code will use the SystemKeyboard the library offers and conceal the AutocompleteToolbar:

class KeyboardViewController: KeyboardInputViewController {

    func viewWillSetupKeyboard() {
        tremendous.viewWillSetupKeyboard()
        setup { controller in
            SystemKeyboard(
                controller: controller,
                autocompleteToolbar: .none
            )
        }
    }
}

However I do not perceive learn how to change that toolbar with my very own customized button that does one thing I would like. I solely perceive fragments of making a button, however not learn how to insert it in the fitting place, nor do I perceive how the views work. After Googling I solely know that views are just like the UI, however not how issues are “injected” right into a keyboard. It is so overwhelming that I have no idea what smaller items to Google to search out the reply.

I attempted placing the documentation into GPT4 and have it give me some concepts. It began spitting out some obj-c code and a few View lessons. Clearly none labored. I perceive I’ve to name viewWillSetupKeyboard to replace the keyboard however that’s about it. I attempted Googling learn how to make an iOS keyboard and that did not work as a result of I must give you the complete default system keyboard look myself. I attempted studying the documentation however I’m too beginner to know it totally.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments