Collapsible component in SwiftUI

The suprisingly hard challenge of building a collapsible component in SwiftUI