Why are emoji characters like 👩👩👧👦 treated so strangely in Swift strings?
This has to do with how the String type works in Swift, and how the contains(_:) method works. The ‘👩👩👧👦 ‘ is what’s known as an emoji sequence, which is rendered as one visible character in a string. The sequence is made up of Character objects, and at the same time it is made up … Read more