'tabViewBottomAccessory' leaves an empty container when conditionally hidden

We use SwiftUI's .tabViewBottomAccessory in our iOS apps for displaying an Audio MiniPlayer View (like in the Apple Music App).

TabView(selection: $viewModel.selectedTab) {
    // Tabs here   
}
.tabViewBottomAccessory {
    if viewModel.showAudioMiniPlayer {
        MiniPlayerView()
    }
}

The Problem

This code works perfectly on iOS 26.0. When 'viewModel.showAudioMiniPlayer' is 'false', the accessory is completely hidden.

However, on iOS 26.1 (23B5059e), when 'viewModel.showAudioMiniPlayer' is 'false', the MiniPlayerView disappears, but an empty container remains, leaving a blank space above the tab bar.

Is this a known Bug in iOS 26.1 and are there any effective workarounds or should I just wait until Apple fixed it?

Thank you for your post. I am unable to locate your FB number for verification purposes. Have you submitted a bug report regarding this issue? The description is pretty good, however I would also recommend a focused sample showing the issue for engineering.

If so, please share a link to your test project. That'll help us better understand what's going on. If you're not familiar with preparing a test project, take a look at Creating a test project. Then I would recommend to open a bug report.

Once you open the bug report, please post the FB number here for my reference.

If you have any questions about filing a bug report, take a look at Bug Reporting: How and Why?

Albert Pascual
  Worldwide Developer Relations.

'tabViewBottomAccessory' leaves an empty container when conditionally hidden
 
 
Q