Skip to content

ENUM

PackagePlatform ​

Contents

swift
public enum PackagePlatform: String, Codable, Equatable, CaseIterable, Comparable

A supported Swift Package Manager platform representation.

Cases ​

iOS ​

swift
case iOS = "ios"

The iOS platform

macCatalyst ​

swift
case macCatalyst = "maccatalyst"

The Mac Catalyst platform

macOS ​

swift
case macOS = "macos"

The macOS platform

tvOS ​

swift
case tvOS = "tvos"

The tvOS platform

watchOS ​

swift
case watchOS = "watchos"

The watchOS platform

visionOS ​

swift
case visionOS = "visionos"

The visionOS platform

Properties ​

caseValue ​

swift
public var caseValue: String

Methods ​

<(_:_:) ​

swift
public static func < (lhs: PackagePlatform, rhs: PackagePlatform) -> Bool

Parameters ​

NameDescription
lhsA value to compare.
rhsAnother value to compare.