We encountered the same issue with our Mac Catalyst app.
Even though we didn't a perfect fix we manage to get back the old UITabBar and having an empty gray toolbar but we didn't manage to fully hide this toolbar. Until we have a better fix or a way to fully hide this toolbar it's better than nothing.
Instantiate an empty toolbar in your scene titleBar:
if let titlebar = scene.titlebar {
titlebar.toolbar = NSToolbar()
titlebar.titleVisibility = .hidden
titlebar.toolbarStyle = .unifiedCompact
}
In your view controller containing the UITabBar force the horizontal size class to compact:
if #available(iOS 17, *) {
traitOverrides.horizontalSizeClass = .compact
}