Instance Propertyswift 6.0.1Swift

    characters

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

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

    var characters: String { get set }

    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 (2)

    Hide obsolete interfaces

    Type members

    Show obsolete interfaces (17)

    Hide obsolete interfaces

    Instance members

    Show obsolete interfaces (2)

    Hide obsolete interfaces