Swift - Convert String to html? - ios

I am trying to achieve what the WordPress app does with the rich text editor. Here are a few images and the link to github repo.
WordPress-Editor-iOS
As you can see from those example and from what I understand is:
That is a normal UITextView where the users types normal/attributedString text and when you tap the button in the top right hand corner of the keyboard it converts the text/attributedString to html??
Not sure if that is correct or not... I have found ways to convert Normal text to html in some other post here on SO, but the result is not the same as the one in that example.
Also when Adding an image to that textView of the Wp-app the image get's uploaded to the server and the in the textView is the link for that image.
I know how to add images to UITextView and upload them but not how to change the "src" name or whatever to the link for the image...
If anyone can help me or give me a quick explanation of how they do this? or how I should approach it I would appreciate it alot!
Thanks alot for your time!

Related

Move a Text box in a PDF viewer using PDFKIT - Swift

I am working on this project https://github.com/kishikawakatsumi/BookReader to expand it. It is a PDF viewer implemented by PDFKIT and everything works fine there. but I have a problem in moving an element on the PDF file. I am very new to swift so I really appreciate if some one could help me any how .
I created a text box like the image below in my story board.
and in the result when I run the app is like this
you see it works fine in PDFViewr too. now my problem is that I want to find a way to move this yellow text box during the page by touching it (and also change the height and width of it ). once before , I have found a way using GestureRecognizer but it does not work more after iOS 13. I searched a lot but I all my efforts failed because non of the solutions worked for my project. I really appreciate if help me and even if payment needed, Its very important for me
Thank you very very much

How to store and display styled text in iOS with Swift in a UITextView

I'm a beginner to iOS development and I'm learning how to build something along the lines of a note taking app using Swift, and I want to allow the user to bold, underline, and italicize text. Kind of like how it's done in Apple's Notes app. I'm using a UITextView right now, but that only allows for basic text input.
I want to know how these options are displayed to the user and also how to store this text information. Simply storing the user input as a string doesn't work because it has no way to retain the bold, underlined, and italicized portions (or maybe I'm missing something). Does apple have API for something like this? I have looked into NSAttributedString, but I'm not really sure if that works for this case.
Any help is greatly appreciated, thanks in advance!

Image and Text in UITableViewRowAction

i need to create a UITableViewRowAction but i need to have an image and the text centralized and the image view must come above the text. It should looks like the WhatsApp TableViewRowAction.
I've already used every kind of library that i've found in the internet to do it and i could not get success.
Can you guys help me?

How to dynamically highlight words in an image iOS

I am currently working on an iOS application that is to be used as a museum display. Part of the display concerns a speech by Abraham Lincoln. My client would like me to display the text of the speech with certain words and phrases highlighted. When you click on the highlighted words a popup annotation should appear. The tricky part is that they don't want to use digital text. They want to display the words of the speech in the form of an image taken from a facsimile of Lincoln's own handwriting.
I have a good deal of experience in iOS development, and I think I am up to the task of responding to clicks on the highlighted words with a simple touchesBegan event handler to get the CGPoint of the touch. However, graphics are not my strong suit. I don't have a good idea of what to do about highlighting the words. I imagine I need to use some kind of filter or mask, but I have never done this in iOS before.
Any help is appreciated (and I'm very generous with upvotes). Thanks to everyone!
If you're going to be building up the composite image anyway, how about putting the highlighted text as the image on buttons set on top of the background, with the rest of the text as part of the background image?
If there's no button text, just the image (of the word or phrase) then you're sorted.

iOS image with hidden hyperlinks

I've just been handed these requirements but wanted to check whats the best way to proceed with this?
There is a large Image file which needs to be displayed on an iPad which should be zoomable/pannable (thats the easy bit).
Now this image has several 'items' which need to be clickable - i.e. I need to generate a UIPopoverview with additional information about the item every time the item is clicked.
Whats the best way to go on about this?
TIA!
Button nested in the imageView did the trick!
See previous post by #HermannKlecker

Resources