TabView selection deprecated?!

This year we hope for a full control of tab bar style like we have in UIKit. But the only changes is about a very important feature to become deprecated.

From SwiftUI documentation this initializer is deprecated:

init(
    selection: Binding<SelectionValue>?,
    content: () -> Content
)
  • How we know the selected tab?
  • How to programmatically change the selected tab?
  • Any new modifier for that?

Same question here. I'm hoping this will become clearer in future beta seeds.

Xcode 14 tells you to use the new "SelectableTabsBuilder", but I haven't found anything on that yet. Hopefully Beta 2 we will see it.

I'm hoping to be able to detect a tab tap while the tap is already selected so I can reset / pop my new NavigationStack back to root. Fingers crossed further TabItem control comes this year!

TabView selection deprecated?!
 
 
Q