Documentation about `Group` modifier behavior is incorrect

Originator:darren.mo
Number:rdar://FB13448594 Date Originated:2023-12-05
Status:Open Resolved:
Product:SwiftUI Product Version:
Classification:Incorrect/Unexpected Behavior Reproducible:
 
https://developer.apple.com/documentation/swiftui/group

The documentation says
> The modifier applies to all members of the group — and not to the group itself. For example, if you apply `onAppear(perform:)` to the above group, it applies to all of the views produced by the `if isLoggedIn` conditional, and it executes every time `isLoggedIn` changes.

I have attached a sample project with a similar `Group` definition. The “Appeared!” message is only ever logged once—even when the `if` condition changes. Is this a bug or is the documentation incorrect?

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!