Building Expandable List with OutlineGroup & DisclosureGroup in SwiftUI 2.0

Expandable List with OutlineGroup & DisclosureGroup in SwiftUI 2.0

Building an expandable list with nested items is quite a complex and error prone task to implement when using in . Luckily with SwiftUI 2.0, Apple introduced and . With the views in our arsenal, we can build a hierarchical expandable and collapsible list with minimal lines of code using declarative syntax and…