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