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.
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())
}
}
}
Selecting any option will automatically load the page