<!--
{
  "availability" : [
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/OpenWindowAction/SharingBehavior/required",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI16OpenWindowActionV15SharingBehaviorV8requiredAEvpZ"
  },
  "title" : "required"
}
-->

# required

The window will be shared if there is an available sharing session
and the person using your app confirms the offer to share.
The window will only be opened if sharing succeeds.

```
static let required: OpenWindowAction.SharingBehavior
```

---

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)