---
title: Mirror.Children
framework: swift
role: symbol
role_heading: Type Alias
path: swift/mirror/children-swift.typealias
---

# Mirror.Children

The type used to represent substructure.

## Declaration

```swift
typealias Children = AnyCollection<Mirror.Child>
```

## Discussion

Discussion When working with a mirror that reflects a bidirectional or random access collection, you may find it useful to “upgrade” instances of this type to AnyBidirectionalCollection or AnyRandomAccessCollection. For example, to display the last twenty children of a mirror if they can be accessed efficiently, you write the following code: if let b = AnyBidirectionalCollection(someMirror.children) {     for element in b.suffix(20) {         print(element)     } }
