PlatformVersionConstraint
public enum PlatformVersionConstraint : Hashable, Equatable, CustomStringConvertible, ExpressibleByIntegerLiteral, ExpressibleByStringLiteral
Defines a single constraint, restricting to a specific version.
Supports initialising from an Int (e.g. 11) and String e.g. (10.13.2
)
-
Matches any version of the platformn
Declaration
Swift
case any
-
Matches any version >= the specified OS version
Declaration
Swift
case atLeast(version: OperatingSystemVersion)
-
Matches no versions, used to prevent all matching on a given platform
Declaration
Swift
case unsupported
-
Declaration
Swift
public typealias IntegerLiteralType = UInt
-
Declaration
Swift
public typealias StringLiteralType = String
-
Declaration
Swift
public init(integerLiteral value: IntegerLiteralType)
-
Declaration
Swift
public init(stringLiteral value: StringLiteralType)
-
Returns
true
if the current platform that is executing is compatible with this version constraint.Declaration
Swift
public var isCurrentCompatible: Bool { get }
-
Declaration
Swift
public var description: String { get }