DisclosureGroup not animating with Xcode 14

For some reason Disclosure Groups stoped animating on open and close when using the new Xcode 14 (downloaded today). is there a solution for this? seems to happen when using the "isExpanded:" parameter.

Answered by Nadav_C in 728486022

For anyone who's interested, there is a problem with @AppStorage and animations in Xcode 14. I resolved the Issue by using @State and saving to @AppStorage with "onChange". I hope this will get fixed soon so I can remove that extra step.

Am I the only one experiencing this? it'll be nice if someone else can confirm if this is indeed an issue.

Correction: this happens when using an @AppStorage variable in "isExpanded" instead of a @State variable. Does someone know how I can use an @AppStorage variable so the app will remember the state after reopening the app and still keep the Disclosure Groups animation?

Accepted Answer

For anyone who's interested, there is a problem with @AppStorage and animations in Xcode 14. I resolved the Issue by using @State and saving to @AppStorage with "onChange". I hope this will get fixed soon so I can remove that extra step.

DisclosureGroup not animating with Xcode 14
 
 
Q