I feel like I'm destined to repeat this message until I die, but: rather than using replacingOccurrences(of:with:) you should almost certainly use replacing(_:with:) instead. (But only if you want to avoid the most random bugs you can imagine.) Details: hackingwithswift.com/articles/

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/twostraws/statuses/115572336042171676 on your instance and quote it. (Note that quoting is not supported in Mastodon.)