While MacOS has had apps enabling ordinary users to easily make custom keyboard layouts (e.g. Ukelele) for a long time already, the same is not true for iOS. Users still have to rely on apps produced by developers and offered via the app store. Below is some info on how these can be made by people with the necessary skills. The first link relates to making files for the Keyman app, which have to then be compiled on a Windows machine. The other 3 are tutorials for iOS programmers.
These links are only for screen keyboards. Development of hardware keyboard layouts remains a mystery.
https://help.keyman.com/developer/10.0/guides/develop/tutorial/
https://medium.com/swift-india/creating-a-custom-keyboard-in-ios-a75e7d5cc5ef
https://medium.com/mackmobile/custom-keyboard-tutorial-ef0c50906f5e
https://www.raywenderlich.com/49-custom-keyboard-extensions-getting-started
If you can make do with somewhat more limited custom input functionality, have a look at Unicode Pad Pro.
These links are only for screen keyboards. Development of hardware keyboard layouts remains a mystery.
https://help.keyman.com/developer/10.0/guides/develop/tutorial/
https://medium.com/swift-india/creating-a-custom-keyboard-in-ios-a75e7d5cc5ef
https://medium.com/mackmobile/custom-keyboard-tutorial-ef0c50906f5e
https://www.raywenderlich.com/49-custom-keyboard-extensions-getting-started
If you can make do with somewhat more limited custom input functionality, have a look at Unicode Pad Pro.