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

# OpenWindowAction.SharingBehavior

```
struct SharingBehavior
```

## Topics

### Type Properties

[`static let requested: OpenWindowAction.SharingBehavior`](/documentation/SwiftUI/OpenWindowAction/SharingBehavior/requested)

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 be opened regardless of whether sharing succeeds.

[`static let required: OpenWindowAction.SharingBehavior`](/documentation/SwiftUI/OpenWindowAction/SharingBehavior/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.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

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)