There’s a modifier on Section
called .collapsible()
that takes a bool.
I thought it could be used on any platform, but it turns out that it’s exclusive to macOS. With that in mind I created a SwiftUI macOS app and added a List
. The modifier only works with .listStyle(.sidebar)
, so I did that too. I’m starting with a Sect…
Keep reading with a 7-day free trial
Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.