UtilityWindow can't read @FocusedValue of main scene

According to the UtilityWindow documentation:

• They receive FocusedValues from the focused main scene in an application, similar to commands in the main menu, which can be used to display information on the active content as the user focuses on different scenes.

This makes me think that any UtilityWindow, even across Scenes, should always receive @FocusedValues from the currently focused window of any scene.

However, the following code doesn't quite work:

@Observable class Info: Identifiable {
    let id = UUID()
}

struct ExampleApp: App {
    var body: some Scene {
        WindowGroup {
            ContentView() // Inside, it uses .focusedSceneValue(info)
        }

        UtilityWindow("Test") {
            UtilityWindowContent()
        }
    }
}

struct UtilityWindowContent: View {
    @FocusedValue(Info.self) var info

    var body: some View {
        Text(info?.id ?? "<nil>") // This always shows "<nil>"
    }
}

Here's some annotated screenshots of what's happening in a project:

Menu bar commands do work with the same setup:

As a workaround, attempting to use @FocusedValue in the App struct works, but as a result, the value appears to instantiate multiple times in the background, and they re-instantiate with every focus change. The @FocusedValue variable gets the correct instance, but it's needlessly initializing others in the background.

This is on macOS 26.0 Tahoe Beta 8 (25A5349a).

Using FocusedValues in UtilityWindow as described in the documentation isn't working for me either in macOS 26.0.1. Outside of the SwiftUI documentation, I can't find any information anywhere about actually using FocusedValues in a UtilityWindow, not even example code. Your comment is the only content I've been able to find, and you're having the same issue I am.

If anyone coming in from a search engine has any insight into getting this to work, please share it!

UtilityWindow can't read &#64;FocusedValue of main scene
 
 
Q