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 : PlatformThe iOS platform.
static let linux: PlatformThe Linux platform.
static let macOS : PlatformThe macOS platform.
static let tvOS : PlatformThe tvOS platform.
static let watchOS : PlatformThe watchOS platform.
struct SupportedPlatform A platform that the Swift package supports.