Post

Replies

Boosts

Views

Activity

Comment on Duplicate toolbar item and wrong document name in SwiftUI document based app
Maybe it has, but that doesn't help people running older OSX versions. But, I have figured out what causes it (at least in my case, and I suspect what is going wrong in the framework). It is using the navigationDocument(fileUrl) with a url that doesn't exist (which happens during rename, or even save of an untitled document). That causes the toolbar to disappear. You need to ensure the fileUrl provided actually exists. I filed FB20931144 with the details.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’25