Skip to content

reflectClass(_:)

Azoy edited this page May 6, 2021 · 2 revisions

reflectClass(_:)

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

public func reflectClass(_ type: Any.Type) -> ClassMetadata? 

Parameters

  • type: Metatype to get struct metadata from.

Returns

ClassMetadata for the given metatype.

reflectClass(_:)

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

public func reflectClass(_ instance: Any) -> ClassMetadata? 

Parameters

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

Returns

ClassMetadata for the given instance.

Types
Protocols
Global Variables
Global Functions
Clone this wiki locally