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?
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.