28.5 Hierarchical Lists
SwiftUI also includes support for organizing hierarchical data for display in list format as shown in Figure 28-8 below:
Figure 28-8
This behavior is achieved using features of the List view together with the OutlineGroup and DisclosureGroup views which automatically analyze the parent-child relationships within a data structure to create a browsable list containing controls to expand and collapse branches of data. This topic is covered in detail beginning with the chapter titled “An Overview of List, OutlineGroup and DisclosureGroup”.