CharacterView

    A view of a string’s contents as a collection of characters.

    This declaration was obsoleted in Swift 5.0: Please use String directly

    typealias CharacterView = String

    Previous versions of Swift provided this view since String itself was not a collection. String is now a collection of characters, so this type is now just an alias for String.

    Other members in extension

    Types

    Typealiases

    Show obsolete interfaces (1)

    Hide obsolete interfaces

    • typealias IndexDistance

      A type that represents the number of steps between two String.Index values, where one value is reachable from the other.

    Type members

    Show obsolete interfaces (17)

    Hide obsolete interfaces

    Instance members

    Show obsolete interfaces (3)

    Hide obsolete interfaces