This file contains 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 | |
extension Character { | |
/// A simple emoji is one scalar and presented to the user as an Emoji | |
var isSimpleEmoji: Bool { | |
return unicodeScalars.count == 1 && unicodeScalars.first?.properties.isEmojiPresentation ?? false | |
} | |
/// Checks if the scalars will be merged into and emoji | |
var isCombinedIntoEmoji: Bool { |