A string type designed to represent text that is known at compile time.
SDK
- Xcode 6.0.1+
Framework
- Swift Standard Library
Declaration
Overview
Instances of the Static
type are immutable. Static
provides limited, pointer-based access to its contents, unlike Swift’s more commonly used String
type. A static string can store its value as a pointer to an ASCII code unit sequence, as a pointer to a UTF-8 code unit sequence, or as a single Unicode scalar value.