Skip to content

swift_getTypeName(for:qualified:)

Azoy edited this page May 6, 2021 · 2 revisions

swift_getTypeName(for:qualified:)

Gets the types name, either qualified (full name representation), or non qualified (just the type name).

public func swift_getTypeName(
  for type: Any.Type,
  qualified: Bool
) -> String 

Parameters

  • type: Type to get the name of.
  • qualified: Whether or not this name should be qualified.

Returns

A string who contains the name of the type.

swift_getTypeName(for:qualified:)

Gets the types name, either qualified (full name representation), or non qualified (just the type name).

public func swift_getTypeName(
  for metadata: Metadata,
  qualified: Bool
) -> String 

Parameters

  • metadata: Type metadata to get the name of.
  • qualified: Whether or not this name should be qualified.

Returns

A string who contains the name of the type metadata.

Types
Protocols
Global Variables
Global Functions
Clone this wiki locally