Post

Replies

Boosts

Views

Activity

Reply to SwiftUI Navigation - Top toolbar breaks and app is unusable
Thanks for your response, attached is the intended view. It's actually not that the toolbar is in the wrong position; it's that the content below the toolbar is being placed incorrectly. Steps I've taken to solve this: Attempted to reproduce in a test repo, but this was unfruitful. It has never happened during normal development; as I mentioned before, it only happens when the app is opened after not being open for some time On one occasion where I reproduced the issue, I was able to attach the debugger. I found that when a view was pushed onto the NavigationStack, duplicate views would be pushed onto the stack – e.g. after tapping into a single chat, the "path" of the NavigationStack would be something like ["Home", "Chat", "Chat", "Chat"...] Perhaps this is a useful clue?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’25