A Boolean value indicating whether a string has no characters.
SDK
- Xcode 9.3+
Framework
- Swift Standard Library
Declaration
var isEmpty: Bool { get }
A Boolean value indicating whether a string has no characters.
SDK
Framework
var isEmpty: Bool { get }
var count: Int
The number of characters in a string.