Returns a specific descendant of the reflected subject, or
nil if no such descendant exists.
- Xcode 8.0+
- Swift Standard Library
The first mirror path component to access.
Any remaining mirror path components.
The descendant of this mirror specified by the given mirror path components if such a descendant exists; otherwise,
Pass a variadic list of string and integer arguments. Each string argument selects the first child with a matching label. Each integer argument selects the child at that offset. For example, passing
1, "two", 3 as arguments to
my is equivalent to:
This function is suitable for exploring the structure of a mirror in a REPL or playground, but is not intended to be efficient. The efficiency of finding each element in the argument list depends on the argument type and the capabilities of the each level of the mirror’s
children collections. Each string argument requires a linear search, and unless the underlying collection supports random-access traversal, each integer argument also requires a linear operation.