String

struct String
  • Tests against the existence of a given unicode glyph on the present OS

    Declaration

    Swift

    public var unicodeSupported : Bool

    Return Value

    true if this string’s unicodes (including emojis) will all return meaningful representations (i.e, not a ῿)

  • Returns true if the string is exactly one emoji

    Declaration

    Swift

    public var isEmoji : Bool
  • Returns true if the string contains one or more emojis

    Declaration

    Swift

    public var containsEmojis : Bool
  • Number of emojis in the string

    Declaration

    Swift

    public var emojiCount : UInt
  • English description for the emoji. Returns nil string is not an emoji

    Declaration

    Swift

    public var emojiDescription : String?
  • List of emojis embedded in the string

    Declaration

    Swift

    public var emojis : Array<Character>