Skip to content

reflect(_:)

Azoy edited this page May 6, 2021 · 2 revisions

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 Variables
Global Functions
Clone this wiki locally