DisclosureGroup with "isExpanded" makes the app on Mac (designed for Ipad) unresponsive

DisclosureGroup with "isExpanded" with a @State variable is working fine on iPhone and iPad but makes the Mac app unresponsive. removing the "isExpanded" parameter fixes the issue but I lose that functionality. Does anyone know of this issue and have a solution or a workaround?

Answered by Nadav_C in 730360022

Apparently DisclosureGroup wasn't the issue. Deleting the project from Library > Containers folder before every run solves the problem. I have no idea why this is necessary but I hope this will be addressed.

edit: this happens when using multiple DisclosureGroup with different @State variables in "isExpanded" in the same view (it works if it's just one).

Accepted Answer

Apparently DisclosureGroup wasn't the issue. Deleting the project from Library > Containers folder before every run solves the problem. I have no idea why this is necessary but I hope this will be addressed.

DisclosureGroup with "isExpanded" makes the app on Mac (designed for Ipad) unresponsive
 
 
Q