'tabViewBottomAccessory' leaves an empty accessory area 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' becomes 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?

Answered by DTS Engineer in 861715022

This is the intended behavior, at the moment there is no API that enables you programmatically hide the bottom accessory in a tab view. The tabview bottom accessory is still configured in this case, but it’s an empty view.

If you’d like the engineering team to add functionality that enables programmatically hiding the bottom accessory in the tab view, please submit an enhancement request via Feedback Assistant and post the Feedback ID number here.

You should probably raise this as a bug in the usual way. It won't really get progressed if it's only posted in these Developer Forums.

You need to raise each issue you find separately at https://feedbackassistant.apple.com/ You can post the FB numbers here if you want, so that others can link to them.

Accepted Answer

This is the intended behavior, at the moment there is no API that enables you programmatically hide the bottom accessory in a tab view. The tabview bottom accessory is still configured in this case, but it’s an empty view.

If you’d like the engineering team to add functionality that enables programmatically hiding the bottom accessory in the tab view, please submit an enhancement request via Feedback Assistant and post the Feedback ID number here.

Bug Report: FB20587621

Feedback Report: FB20603246

'tabViewBottomAccessory' leaves an empty accessory area when conditionally hidden
 
 
Q