Steps perform:
-
Initialize the html string
let htmlString = "
rich text test - ios 101
\nbold text
\n\n<span style="color:#1abc9c">italian text
\n\n<span style="color:#e74c3c">underline
\n"
-
call insertHtml function
editorView.insertHTML(htmlString, completion: nil)
Result:
No output

.
Can anyone please help me out here, what is wrong in my code?