A disclosure group in a list animates the open close when you tap on the > icon. I need to support tapping on the entire title label. This code works below, but the tapGesture on the label does not do any animation like the > button does. Is there some way to have DisclosureGroup use the same animation as it does itself?
Code Block @State var guestsExpanded: Bool = true var body: some View { List() { DisclosureGroup(isExpanded: $guestsExpanded, content: { ForEach( model.guests ) { guest in GuestView(guest: guest, selectedGuests: $selectedGuests) } }, label: { Text("Guests").onTapGesture { guestsExpanded = !guestsExpanded } }) ... } }