'ColumnNavigationViewStyle' initializer is inaccessible due to 'internal' protection level

Hi, trying simply using new ColumnNavigationViewStyle and getting error in title on using it.

struct CollectionView: View {

    var body: some View {

        NavigationView {

        

            Text("Hello")

            

            .navigationTitle("Hello")

        }

        .navigationViewStyle(ColumnNavigationViewStyle())

    }

}



struct CollectionView_Previews: PreviewProvider {

    static var previews: some View {

        CollectionView()

    }

}

Swift 5.5 introduced a new dot leaded notation.

SE-0299Extending Static Member Lookup in Generic Contexts

Please try this:

        .navigationViewStyle(.columns)
'ColumnNavigationViewStyle' initializer is inaccessible due to 'internal' protection level
 
 
Q