Platform
Represents a platform.
struct Platform
Represents a platform.
struct Platform
import PackageModel
protocol Decodable
A type that can decode itself from an external representation.
protocol Encodable
A type that can encode itself to an external representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Sendable
init(from decoder: any Decoder) throws
static let android: Platform
static let driverKit: Platform
static let iOS: Platform
static let linux: Platform
static let macCatalyst: Platform
static let macOS: Platform
static let openbsd: Platform
static let tvOS: Platform
static let visionOS: Platform
static let wasi: Platform
static let watchOS: Platform
static let windows: Platform
static func custom(name: String, oldestSupportedVersion: PlatformVersion) -> Platform
static func custom(name: String, oldestSupportedVersion: String) -> Platform
let name: String
The name of the platform.
let oldestSupportedVersion: PlatformVersion
The oldest supported deployment version by this platform.
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.