Platform

public enum Platform : String

Models the different platforms in the Apple ecosystem.

  • Represents the iOS platform.

    Declaration

    Swift

    case ios
  • Represents the macOS platform.

    Declaration

    Swift

    case macos
  • Represents the tvOS platform.

    Declaration

    Swift

    case tvos
  • Represents the watchOS platform.

    Declaration

    Swift

    case watchos
  • Initializes a Platform

    Declaration

    Swift

    public init?(platform: String)

    Parameters

    platform

    A textual Platform.