Last active
August 14, 2024 12:34
-
-
Save hashaam/31f51d4044a03473c18a168f4999f063 to your computer and use it in GitHub Desktop.
Strip HTML tags in Swift
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The provided solution is easy to use, however, there is some significant downside. If you are working on a big scale project with complex views you might end up getting a warning === AttributeGraph: cycle detected through attribute === and the view would not refresh properly. This was detected to be caused by the legacy API related to NSAttributedString. It is not fixed yet as far as I know. This usually happens when you do some heavy calculations and set up a view model inside the init of the view.