SwiftDocCPlatformNameStructurePlatformNameA supported platform’s name representation.struct PlatformNameTopicsOperatorsstatic func == (PlatformName, PlatformName) -> BoolCompares platform names independently of any known aliases differences or possible incomplete display names.Initializersinit(from: any Decoder) throwsinit(rawValue: String, aliases: [String], displayName: String?)Creates a new platform name value.Instance Propertiesvar aliases: [String]Other known identifiers for the same platform (aka “macosx” for “macOS”).var displayName: StringThe name to use in render JSON. If nil returns rawValue.var rawValue: StringInstance Methodsfunc encode(to: any Encoder) throwsType Propertiesstatic let catalyst: PlatformNameThe Catalyst platform.static let catalystOSAppExtension: PlatformNamestatic let iOS: PlatformNameApple’s iOS operating system.static let iOSAppExtension: PlatformNamestatic let iPadOS: PlatformNameThe iPad platform.static let linux: PlatformNameA Linux-based operating system, but not a specific distribution.static let macOS: PlatformNameApple’s macOS operating system.static let macOSAppExtension: PlatformNamestatic let sortedPlatforms: [PlatformName]All supported platforms sorted for presentation.static let swift: PlatformNameThe Swift toolchain platform.static let tvOS: PlatformNameApple’s tvOS operating system.static let tvOSAppExtension: PlatformNamestatic let visionOS: PlatformNameApple’s visionOS operating system.static let watchOS: PlatformNameApple’s watchOS operating system.static let watchOSAppExtension: PlatformName