I'm curious about this as well. I have a certain count of a variable I know will need disclosure groups on a per view basis. However, I can't create a variable for it in the struct since it's only available in the body. I'm a bit of a newbie to swift so could just be doing things wrong, but this seems overly difficult.
I want each disclosure group to expand separately from the others, so thought I might just be able to make an array of Bools in an array for each entry that will have a disclosure group. Didn't work.
I can do one that applies globally to all items in one disclosure group very easily of course, and that's what I'll do until I can get a better aesthetic fix.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: