<!--
{
  "availability" : [
    "macOS: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/NSHostingController/sceneBridgingOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI19NSHostingControllerC20sceneBridgingOptionsAA0c5ScenefG0Vvp"
  },
  "title" : "sceneBridgingOptions"
}
-->

# sceneBridgingOptions

The options for which aspects of the window will be managed by this
controller’s hosting view.

```
@MainActor @preconcurrency var sceneBridgingOptions: NSHostingSceneBridgingOptions { get set }
```

## Discussion

`NSHostingController` will populate certain aspects of its associated
window, depending on which options are specified.

For example, a hosting controller can manage its window’s toolbar by
including the `.toolbars` option:

```
struct RootView: View {
    var body: some View {
        ContentView()
            .toolbar {
                MyToolbarContent()
            }
    }
}

let controller = NSHostingController(rootView: RootView())
controller.sceneBridgingOptions = [.toolbars]
```

When this hosting controller is set as the `contentViewController` for a
window, the default value for this property will be `.all`, which
includes the options for `.toolbars` and `.title`. Otherwise, the
default value is `[]`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)