MirrorType

protocol MirrorType

The type returned by reflect(x); supplies an API for runtime reflection on x

Import import Swift

Instance Variables

var count: Int Required

The count of value's logical children

Declaration

var count: Int { get }
var disposition: MirrorDisposition Required

How value should be presented in an IDE.

Declaration

var disposition: MirrorDisposition { get }
var objectIdentifier: ObjectIdentifier? Required

A unique identifier for value if it is a class instance; nil otherwise.

Declaration

var objectIdentifier: ObjectIdentifier? { get }
var quickLookObject: QuickLookObject? Required

A rich representation of value for an IDE, or nil if none is supplied.

Declaration

var quickLookObject: QuickLookObject? { get }
var summary: String Required

A string description of value.

Declaration

var summary: String { get }
var value: Any Required

The instance being reflected

Declaration

var value: Any { get }
var valueType: Any.Type Required

Identical to value.dynamicType

Declaration

var valueType: Any.Type { get }

Subscripts

subscript(_: Int) Required

Declaration

subscript(i: Int) -> (String, MirrorType) { get }