Optimise for Mac with Mac Catalyst

Hi!
I have problem with Mac Catalyst.
I have written an application for iOS with SideBar/ToolBar. Everything is looking great and native.
But when I am trying to run it on Mac with Catalyst (with Optimise for Mac selected) Sidebar and Toolbar aren't looking Big Sur-native.
I know that SideBar should be List() with  .listStyle(SidebarListStyle())

My project has new lifecycle, so I can't do anything in SceneDelegate.
Code Block
import SwiftUI
@main
struct SpenTApp: App {
    let persistenceController = PersistenceController.shared
    var body: some Scene {
        WindowGroup {
            NavigationView {
                SideBarView()
                  .environment(\.managedObjectContext, persistenceController.container.viewContext)
                HomeView()
                    .environment(\.managedObjectContext, persistenceController.container.viewContext)
                        }
.navigationViewStyle(DoubleColumnNavigationViewStyle())
        }
    }
}


Yeah, this is a known bug where sidebars styling is not fully supported in SwiftUI catalyst.

See this sample project by STS that has work around: https://github.com/steventroughtonsmith/CatalystSwiftUISidebar?ref=swiftobc.com

Optimise for Mac with Mac Catalyst
 
 
Q