Skip to content

reflectClass(__)

tevelee edited this page Jul 21, 2026 · 1 revision

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

Clone this wiki locally