PlatformEnum

protocol PlatformEnum : Enum32

Interface for enumerations in Platform traits.

  • Undocumented

    Declaration

    Swift

    associatedtype OriginalValue = UInt32
  • init(valueName:)

    Default implementation

    Creates a new PlatformEnum instance using the given value name.

    Default Implementation

    Creates a new PlatformEnum instance using the given value name.

    Declaration

    Swift

    @_spi(Unknown)
    init?(valueName: String)

    Parameters

    valueName

    The name of the enum value to create.

    Return Value

    A new PlatformEnum instance, or nil if the value name is not recognized.