I want to display all the apple emojis in a view in same sequence as displayed here https://emojipedia.org/apple/ with the help of their unicode.
I used the following code to implement this.
let emojiRanges = [
0x1F601...0x1F64F,
0x2702...0x27B0,
0x1F680...0x1F6C0,
0x1F170...0x1F251
]
for range in emojiRanges {
for i in range {
let c = UnicodeScalar(i)
print(c ?? "")
}
}
But through this I am not getting expected result. Most of the emojis are missing in between. Please suggest an appropriate solution for this.
Thanks.
Swift 3.0 code...