64 questions
6
votes
2
answers
259
views
+100
Hide dictation (microphone) button in custom iOS keyboard extension
I’m developing a custom keyboard extension using UIInputViewController. When my keyboard is active on iOS 16+, the system places a dictation (microphone) button at the bottom-right corner of the ...
1
vote
0
answers
92
views
iOS custom keyboard highlight/coloring specific text programmatically swift
I am developing an iOS keyboard app where i need to select specific text programmatically. Suppose I want to highlight a word of a sentence on a button click(attached an image for reference).I found ...
4
votes
0
answers
183
views
Swift can't read the textDocumentProxy.documentContextBeforeInput after entering a newline
I am typing string text on textDocumentProxy in a custom keyboard app. The input text includes newlines and punctuation letters, but when I try to edit the textDocumentProxy field, the ...
-1
votes
1
answer
523
views
Custom InputView Keyboard Height [duplicate]
I have made a custom keyboard using a .xib and .swift file. I set it for a textfield by doing the following:
let customNumberPad = CustomNumberPad()
length.inputView = customNumberPad.inputView
...
2
votes
1
answer
663
views
determine safe area for UIInputViewController from UIScreen.main.bounds
I'm making a custom keyboard with an UIInputViewController.
I want to display a xib layout inside a rect. Right now, I determine the correct size of the CGRect, in which I place my xib layout, from ...
0
votes
0
answers
67
views
Adding UIDatePicker a non-Date option
I am trying to add native UIDatePicker a String option which which will represent the option for Ongoing, like job start-end intervals. However could not manage to find something.
I tried to create a ...
3
votes
0
answers
1k
views
How do I use an inputView with a SwiftUI TextField?
So I've started to learn Swift and made the decision to write my first app using SwiftUI. I would like to use a custom in-app keyboard (another SwiftUI view) to make my app easier to use. But I can't ...
0
votes
1
answer
126
views
How to make a custom keyboard using Objective-C that can type images
I want to make a custom keyboard that types custom emojis instead of just letters and numbers.
The following code helps me type just a letter or number
[self.textDocumentProxy insertText:[key ...
-2
votes
1
answer
650
views
What is the difference between UIViewController and UIInputViewController ios swift [closed]
Here I'am working on CustomKeyboardExtension. In my extensible .swift class file the class definition starts with UIInputViewController
class KeyboardViewController: UIInputViewController {
@...
2
votes
0
answers
225
views
Want to text input in custom keyboard extension
I'm making ios keyboard extension and it contains view which has a TextField, but I realized this view is keyboard itself...
To input text in this TextField, what is the best solution?
That's all I ...
0
votes
1
answer
128
views
Can't use UICollectionView in UIInputViewController for keyboard extension
I have created a UICollectionView subclass which I want to use to provide the keys in a UIInputViewController as a keyboard extension. But I have found that attempting to instantiate a ...
1
vote
2
answers
3k
views
UIInputViewController (Custom Keyboard) - UIButton action not being triggered - Why, Oh Why?
I'm sure this is ridiculously easy, but I cannot get a simple example, with a UIInputViewController, to work. I've got two buttons, they show up, but tapping on them has no effect. In Googling, I ...
3
votes
2
answers
2k
views
UIInputViewController being dismissed after leaving and returning to view controller
I'm trying to create a custom chat toolbar to display a text view with the message, along with buttons to allow photo selection. I reworked my code this morning to very closely follow this WWDC 2017 ...
0
votes
1
answer
116
views
UIInputViewController can't response action that come from UIButton before iOS10
I build a custom keyboard by codes. On the self.inputView, add some buttons to input custom content. the core codes as follows:
[self.wordsSenders enumerateObjectsUsingBlock:^(UIButton * _Nonnull ...
2
votes
1
answer
487
views
inputViewController of superview gets called when tapped on subview(UITextView)
I have UIView Subclass to which I have added a UITextField. I have set this view as my Viewcontroller's top view.
In the UIViewSubclass, I have overridden inputViewController getter to provide a ...