Paul Hudson
@twostraws
Learning and sharing at Hacking with Swift, author of Swift, SwiftUI, and iOS books @[email protected]
ID: 55964332
https://www.hackingwithswift.com 11-07-2009 23:49:45
59,59K Tweet
102,102K Followers
245 Following
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/280/o…