225 questions
2
votes
2
answers
223
views
Implementing Undo/Redo Feature in UITextView with IME Support
Currently, we are implementing an undo/redo feature in UITextView.
However, we cannot use the built-in UndoManager in UITextView because we have multiple UITextView instances inside a UICollectionView....
0
votes
0
answers
370
views
Swift UITextView Delegate
I am having a problem and have searched all across StackO and did not see a solution.
I have a UITextview extension with TextViewDelegate that I call inside of my VC so that i can have a placeholder ...
1
vote
0
answers
146
views
Ignore space after predictive text selection in UITextView
I found something similar to my problem checkout here but it does not work for me: link
Thid UITextView delegate method calls twice If we tap on predictive text
1st call insert text 2nd call insert ...
1
vote
1
answer
742
views
Detect shift + return key when UITextView is the responder
I want to detect if the user presses either just "return" key or "shift+return" key on the external keyboard to perform two different actions when the UITextView is the responder.
...
0
votes
1
answer
660
views
Keyboard not appearing in UITextField and UITextView IOS 15
i am not using storyboard for this application so here's my SceneDelegate willConnectTo function
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene....
0
votes
3
answers
1k
views
UITextField shouldChangeCharacters in swift is not working for the first letter entered
I have a textfield population phone number. When i am entering phone number i am checking validation for a invalid phone number. i am using delegate method "textfield should change characters&...
6
votes
2
answers
2k
views
iOS15 UITextView After dragging the view, it causes a crash, Invalid parameter not satisfying: pos
crash example
The above article is a problem found by a netizen on the forum. Recently, I also found a similar crash stack on firebase. I guess it is also caused by this reason, and it may be the ...
0
votes
1
answer
221
views
UITextView shouldInteractWith delegate returning value in alert completion
I have a text view inside a table view cell that can contain URLs. When the user taps on the URL, I want to present an alert to ensure the user wants to continue before handling the URL. I'm trying to ...
2
votes
1
answer
532
views
how to subscribe to a UITextView in iOS swift?
I am fairly new to IOS development and working on a small project, I am trying to subscribe to UITextView using Rxswift. However, I can't seem to find any way to do so online or by following what I ...
-1
votes
1
answer
190
views
How can I prevent a self-sizing UITextView from growing past a specific point (keyboard top anchor, e.g.)?
I have a UITextView, which automatically grows according to the user's text input.
I'd like to prevent the UITextView's bottom anchor from going under the keyboard, or I'd like to autoscroll the view ...
1
vote
1
answer
2k
views
iOS app crashes when tapping URL within UITextView [duplicate]
I'm trying to setup a UITextView with multiple links within the text. My implementation is based on the suggestion described here. Most links work as expected, however tapping on some of them makes ...
1
vote
1
answer
665
views
What main difference textFieldDidChange and shouldChangeCharactersIn method, the delegate of UITextFieldDelegate?
Can someone explain about when to use and how difference of them ?.
3
votes
1
answer
1k
views
Resizable UITextView Has sizeThatFits That Gives Wrong Size in UIViewRepresentable
I am using a UITextView in a SwiftUI app in order to get a list of editable, multiline text fields based on this answer: How do I create a multiline TextField in SwiftUI?
I use the component in ...
1
vote
1
answer
467
views
Delegate method, textViewDidChangeSelection not triggered everytime
I have a UITextView embedded in a UITableView Cell, CustomCell. If I tap the return key when my curser is at the end of the text, I want to create a new cell below that cell, but if I tap return when ...
1
vote
1
answer
318
views
how to find out the text in UITextview does not required to scroll in iOS
I am showing the terms and conditions in the UITextView. when users reached the last line of the text in the UITextView and then only enabling the button (which navigates to the next screen) available ...