Conditional TabViewBottomAccessory
06:45 11 Nov 2025

In iOS 26 I could have an optional TabViewBottomAccessory by using this code:

TabView {
   ...
}
.tabViewBottomAccessory {
    if someCondition {
       SomeView()
    }
}

When the condition was false, the accessory would not even come up. Now, since iOS 26.1 it always shows up, but is empty when the condition is false.
How can I revert back to the iOS 26 behaviour?

swiftui