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 UITableView in UIKit. Luckily with SwiftUI 2.0, Apple introduced OutlineGroup and DisclosureGroup. With the views in our arsenal, we can build a hierarchical expandable and collapsible list with minimal lines of code using declarative syntax and…

--

--

--

Mobile Developer and Lifelong Learner. Currently building super app @ Go-Jek. Xcoding with Alfian at https://alfianlosari.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

The Impacts of Apple’s IDFA Changes

Video Stories and Caching Mechanism(iOS)

Building Table/CollectionView in a few lines of code with DataDrivenRxDatasources on top of…

AdMob Interstitials with SwiftUI

OAuth2 Authentation Facebook Login Laravel — Part 1

Android Vs IOS Which Platform To Build Your App For?

UIScrollView Scrollable Content Size Ambiguity

My iOS 14 Home Screen Set Up

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alfian Losari

Alfian Losari

Mobile Developer and Lifelong Learner. Currently building super app @ Go-Jek. Xcoding with Alfian at https://alfianlosari.com

More from Medium

Guide to manage secrets in SwiftUI app

New configuration file

iOS simple painting App — demonstration in Swift, SwiftUI and RxSwift

Simple painting App preview

SwiftUI. How To pass Binding variable to PreviewProvider

Guide How To Display Modal Alert on iOS With Help of UIAlertController

Alert vs ActionSheet by Apple