This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import UIKit | |
import CoreText | |
// You can run this by copying this file into a Swift playground. | |
extension String { | |
// Returns the number of glyphs used to render the string. If this string | |
// should behave like a single emoji character (regardless of whether it is, |