We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
struct ContentView: View { @State var enableSecondGroup = false var body: some View { VStack { Button { enableSecondGroup.toggle() } label: { Text("Toggle Group 2") } SettingStack { SettingPage(title: "Playground") { SettingGroup(header: "Group 1") { SettingCustomView { Text("Hello Group 1") } } if enableSecondGroup { SettingGroup(header: "Group 2") { SettingCustomView { Text("Hello Group 2") } } } } } } .padding() } }
Group 1 should only be visible when the toggle is off; Group 1 and 2 should be visible when toggle is on
Group 1 is visible when toggle is off; Group 2 is duplicated when toggle is on
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Screen.Recording.2024-01-25.at.11.58.20.PM.mov
Expected behavior
Group 1 should only be visible when the toggle is off; Group 1 and 2 should be visible when toggle is on
Actual behavior
Group 1 is visible when toggle is off; Group 2 is duplicated when toggle is on
The text was updated successfully, but these errors were encountered: