---
title: sceneBridgingOptions
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/nshostingcontroller/scenebridgingoptions
---

# sceneBridgingOptions

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

## Declaration

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

## Discussion

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 [].

## See Also

### Configuring the controller

- [sizeThatFits(in:)](swiftui/nshostingcontroller/sizethatfits(in:).md)
- [preferredContentSize](swiftui/nshostingcontroller/preferredcontentsize.md)
- [sizingOptions](swiftui/nshostingcontroller/sizingoptions.md)
- [safeAreaRegions](swiftui/nshostingcontroller/safearearegions.md)
