tabBarMinimizeBehavior behavior in iOS 26

I'm trying to revamp the player into a floating style like Apple music. I use tabViewBottomAccessory with tabBarMinimizeBehavior. At the time, I noticed an issue that tabViewBottomAccessory would not automatically collapse when the scroll area was small (but still exceeded the screen height). tabViewBottomAccessory can only be automatically collapsed when the scroll area is large enough. Below is the simplest demo.

I'm not sure if it's intentional or if it's a bug. Besides, I wonder if we can control it programmatically(expanded/inline)?

struct ContentView: View {
    var body: some View {
        TabView {
            Tab("Numbers", systemImage: "number.circle") {
                List {
                    // 200 works well, but 20 not
                    ForEach(0..<200) { index in
                        Text("\(index)")
                    }
                }
            }
        }
        .tabBarMinimizeBehavior(.onScrollDown)
        .tabViewBottomAccessory {
            HStack {
                Text("SwiftUI Demo App")
            }
        }
    }
}

Thank you for your post. I am attempting to replicate your observations but I have to say I don’t know exactly what you are seeing. I have utilized your code in iOS 26.2, and the following is my current observation regarding the tabBarMinimizeBehavior when scrolling the table:

Based on the documentation and available information:

The automatic collapsing behavior of tabViewBottomAccessory is designed to work based on the content size relative to the screen height. Should only collapses automatically when the scroll area significantly exceeds the screen height.

Thanks for your time. Very interesting post for sure.

Albert Pascual
  Worldwide Developer Relations.

tabBarMinimizeBehavior behavior in iOS 26
 
 
Q