Skip to content

reflect(__)

tevelee edited this page Jul 21, 2026 · 1 revision

reflect(_:)

The main entry point to grab type metadata from some metatype.

public func reflect(_ type: Any.Type) -> Metadata 

Parameters

  • type: Metatype to get metadata from.

Returns

Metadata for the given type.

reflect(_:)

The main entry point to grab type metadata from some instance.

public func reflect(_ instance: Any) -> Metadata 

Parameters

  • instance: Any instance value to get metadata from.

Returns

Metadata for the given instance.

Types
Protocols
Global Typealiases
Global Variables
Global Functions

Clone this wiki locally