Instance Propertyswift 6.0.1Swift

    count

    The number of characters in a string.

    var count: Int { get }

    To check whether a string is empty, use its isEmpty property instead of comparing count to zero.

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

    Hide obsolete interfaces