SwiftUI ToolbarItem with .status placement doesn’t appear

less than 1 minute read

I recently was trying to add a ToolbarItem to the .bottomBar or .status ToolbarItemPlacement and it would not appear. It appears to have been a bug in NavigationView. I was showing a ProgressView during an async API call. The bottom bar would appear and disappear as the request started and completed, but the ProgressView (or any other view I tried) was nowhere to be seen. From the view debugger, it didn’t appear to exist at all.

When I changed from a NavigationView to a NavigationStack, it started working. A good reminder to follow the guide to migrate to new navigation types. As with most things Apple does, move quickly with the direction they’re heading and your life will be easier.

Tags:

Categories:

Updated: