<!--
{
  "availability" : [
    "iOS: 26.4.0 -",
    "iPadOS: 26.4.0 -",
    "macCatalyst: 26.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WiFiAware",
  "identifier" : "/documentation/WiFiAware/WASharedSecret/Context",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Wi-Fi Aware"
    ],
    "preciseIdentifier" : "s:9WiFiAware14WASharedSecretV7ContextV"
  },
  "title" : "WASharedSecret.Context"
}
-->

# WASharedSecret.Context

A unique value that is specific to your App and the use case a given connection will perform, which diversifies the generated secret so that it is unique to your App and connection.

```
struct Context
```

## Topics

### Initializers

[`init?(Data)`](/documentation/WiFiAware/WASharedSecret/Context/init(_:)-74fai)

Creates a new custom context that provides unique data.

[`init?(String)`](/documentation/WiFiAware/WASharedSecret/Context/init(_:)-8fpqd)

Creates a new custom context that provides a unique string.

### Type Properties

[`static let bundleID: WASharedSecret.Context`](/documentation/WiFiAware/WASharedSecret/Context/bundleID)

A string that provides a unique value specific to your app.

## Relationships

### Conforms To

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

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

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

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

---

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)