In this post, we will see how to resolve Swiftui UITextView new line margin Question: I have a UITextView which I use as a text editor. However, I would like each new line to have a margin bottom. Test text ...
In this post, we will see how to resolve UITextView add new line but not new paragrafh Question: in a UItextView I am using paragraphStyle to space the new paragraphs between them. However, I would need to insert a new ...
In this post, we will see how to resolve Swift attribute for new line in NSAttributedString Question: I have a UITextView with a lightGray text. I would like the color to always be set to black with each new line ...
Question: Is there a way to have multiple lines of text in UILabel like in the UITextView or should I use the second one instead? Best Answer: Set the line break mode to word-wrapping and the number of lines to ...
Question: Is there a good way to adjust the size of a UITextView to conform to its content? Say for instance I have a UITextView that contains one line of text: I then add another line of text: Is there ...
Question: My application uses an UITextView. Now I want the UITextView to have a placeholder similar to the one you can set for an UITextField. How to do this? Best Answer: I made a few minor modifications to bcd’s solution ...
Question: noob swift guy here. I have this UITextView where the user writes something. I need to store his “note” to the database with all the formated text in it. That means if it has bold, I need to display ...
Question: My app is crashing when i paste some copied text in UITextView. This crash occurs only on iOS15 Answer: Conform your view controller to UITextPasteDelegate: And set past delagete: Then implement textPasteConfigurationSupporting function: If you have better answer, please ...
Question: I have a UITextView with an attributedString for the text. When I either close and re-open the view or background the app and come back, the text in the textView disappears. I want to be able to temporarily save ...
Question: i am not using storyboard for this application so here’s my SceneDelegate willConnectTo function and here is the UITextView configuration function and this is what gets printed in the console I made sure that the delegate methods get called ...