Sidebar - Collapsible Sections?

I'm looking for any pointers or sample code that may exist for how to implement collapsible sections in a sidebar just like the new Photos app (and several other Apple apps).

It looks like it should be a standard component but I can't find it anywhere.

Thanks
To clarify, I'm trying to do this with SwiftUI. From what I can see the collapsible sections is a new UICollectionView feature.
You can use the new [OutlineGroup](https://developer.apple.com/documentation/swiftui/outlinegroup) view for your elements, wrap them in a List, and display them with the SidebarListStyle. The items collapse only when tapping the chevron.

Using the FileItem from the OutlineGroup example, that would simply mean something like this:
Code Block `
List {
    OutlineGroup(data, children: \.children) { item in
        Text ("\(item.description)")
    }
}.listStyle(SidebarListStyle())
`
Sidebar - Collapsible Sections?
 
 
Q