A platform that usually corresponds to an operating system such as iOS, macOS, or Linux.
SDK
- Xcode 10.2+
Framework
- Swift Package Manager
A platform that usually corresponds to an operating system such as iOS, macOS, or Linux.
SDK
Framework
static let i OS: Platform
The iOS platform.
static let linux: Platform
The Linux platform.
static let mac OS: Platform
The macOS platform.
static let tv OS: Platform
The tvOS platform.
static let watch OS: Platform
The watchOS platform.
struct Supported Platform
A platform that the Swift package supports.