Representation of the sub-structure and optional “display style” of any arbitrary subject instance.
- Xcode 7.0+
- Swift Standard Library
Describes the parts—such as stored properties, collection elements, tuple elements, or the active enumeration case—that make up a particular instance. May also supply a “display style” property that suggests how this structure might be rendered.
Mirrors are used by playgrounds and the debugger.