Hello,
I need to create a NavigationView with a List inside a DisclosureGroup but the list is not visible. Actually I did see one time a grey area of a list background.
This is the code what I use.
Any suggestions, or could it be a beta SwiftUI 2 bug?
Thank you
I need to create a NavigationView with a List inside a DisclosureGroup but the list is not visible. Actually I did see one time a grey area of a list background.
This is the code what I use.
Code Block struct SideBarView: View { @State private var revealDetails = false var body: some View { VStack { DisclosureGroup("Show some Text", isExpanded: $revealDetails) { VStack{ Text("Some Text...") .padding() .lineLimit(5) Divider() List(){ Text("Hello, world!").padding() Text("Hello, world!").padding() Text("Hello, world!").padding() }.listStyle(SidebarListStyle()) Divider() } .padding() } Spacer() } } }
Any suggestions, or could it be a beta SwiftUI 2 bug?
Thank you