'What are the best practices to display hardcoded pre-made long texts in an xcode project?
This will soon be my first time publishing an iOS app, and I just finished writing my privacy policy and terms & conditions texts. Best idea I came up with was to display them in UITextViews in dedicated view controllers.
But both texts are very long. And they already have headers, titles, bullets points... they're all set up and ready to be used !
Obviously, copying the text from this beautiful .txt format and hard-pasting it inside a String property is impossible because it makes the text completely plain again (and of course... I also need to get rid of every « " » and replace line breaks already implemented inside the text with \n, because it otherwise conflicts with a String declaration).
It's going to be very time consuming, and I'll end up with a very poor visual result anyway.
Is there a simpler and better way to display a text file in its original format ? Maybe by importing it ?
I hope my question was clear and understandable enough !
Thank you very much in advance for your help, I really appreciate :)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
