CharacterSet

extension CharacterSet
  • Defines a character set containing characters other than alphanumerics that are allowed in a username. However, these characters cannot be at the start or end of a username.

    Declaration

    Swift

    static var usernameSeparators: CharacterSet { get }
  • Declaration

    Swift

    static var validUsernameChars: CharacterSet { get }
  • Defines a character set containing characters that might delineate hashtags or usernames within text content.

    Declaration

    Swift

    static var contentSeparators: CharacterSet { get }