Reflection

suggest change

Versions

Syntax

Remarks

  1. General Remarks:

A Mirror is a struct used in the introspection of an object in Swift. Its most prominent property is the children array. One possible use case is to serialize a struct for Core Data. This is done by converting a struct into a NSManagedObject.

  1. Basic Usage for Mirror Remarks:

The children property is a collection of the reflected values. Each child has a label and a value. A child might be a property named title whose value is Game of Thrones: A Song of Ice and Fire.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents