You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a new func to String instances which allows you to parse a tagged (html-like) string and return the NSMutableAttributed string.
It will be called renderTags(withStyles:).
Follows an example:
letsourceTaggedString="<center>The quick brown fox</center>\njumps over the lazy dog is an <italic>English-language</italic> pangram—a phrase that contains <italic>all</italic> of the letters of the alphabet. It is <extreme><underline>commonly</underline></extreme> used for touch-typing practice."let _ = sourceTaggedString.renderTags(withStyles:[tag_center,tag_italic,tag_extreme,tag_underline])
The text was updated successfully, but these errors were encountered:
Add a new func to
String
instances which allows you to parse a tagged (html-like) string and return theNSMutableAttributed
string.It will be called
renderTags(withStyles:)
.Follows an example:
The text was updated successfully, but these errors were encountered: