Skip to content

reflectEnum(__)

tevelee edited this page Jul 21, 2026 · 1 revision

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 Typealiases
Global Variables
Global Functions

Clone this wiki locally