SwiftUI Mac navigation title is not editable

I have a SwiftUI application whose primary scene has the simplified definition:

WindowGroup(id: someID, for: SomeModel.self) { $id in
    RootView(id: $id)
}

The body of RootView includes:

someView
    .navigationTitle($title)
    .navigationDocument(model)

The navigation title displays the correct value, however according to the documentation of the above modifiers, the navigation title should be editable and include a proxy icon. Neither of these is the case.

  • RootView does not include a NavigationStack nor a NavigationSplitView.
  • The Transferable implementation of the model is correct since drag & drop work fine. The UTType for the model conforms to public.content but not public.data since the model does not represent a file.

Have I overlooked something in the implementation or is this a bug in the current beta?

Xcode: Version 14.0 beta 6 (14A5294g), Feedback: FB11402796.

It works correctly on iOS and iPadOS 16 and that's maybe what the documentation is referring to.

In the Renaming section of this article, it explains this feature is available on macOS but the indicator is for iOS.

I haven't seen editable navigation titles yet in macOS Ventura, so I don't know what they would look like.

SwiftUI Mac navigation title is not editable
 
 
Q