Skip to content

reflectEnum(_:)

Azoy edited this page May 6, 2021 · 2 revisions

reflectEnum(_:)

The main entry point to grab an enum's metadata from some metatype that represents a enum.

public func reflectEnum(_ type: Any.Type) -> EnumMetadata? 

Parameters

  • type: Metatype to get enum metadata from.

Returns

EnumMetadata for the given metatype.

reflectEnum(_:)

The main entry point to grab a enum's metadata from some instance.

public func reflectEnum(_ instance: Any) -> EnumMetadata? 

Parameters

  • instance: Any instance value of a enum to get metadata from.

Returns

EnumMetadata for the given instance.

Types
Protocols
Global Variables
Global Functions
Clone this wiki locally