One Swift mistake everyone should stop making today
This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).
Swift developers should use the native replacing(_:with:) method instead of replacingOccurrences(of:with:) to avoid Unicode-related bugs. The Objective-C method replacingOccurrences doesn't handle Unicode properly, particularly with emoji flags composed of regional indicator symbols. This can cause bizarre string mutations
•4m read time• From hackingwithswift.com
Table of contents
Problem, meet solutionSort: