<!--
{
  "availability" : [
    "iOS: 26.2.0 -",
    "iPadOS: 26.2.0 -",
    "macCatalyst: 26.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WiFiInfrastructure",
  "identifier" : "/documentation/WiFiInfrastructure/WISSID/init(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Wi-Fi Infrastructure"
    ],
    "preciseIdentifier" : "s:18WiFiInfrastructure6WISSIDVyACSg10Foundation4DataVcfc"
  },
  "title" : "init(_:)"
}
-->

# init(_:)

Creates an SSID from raw binary data.

```
init?(_ ssid: Data)
```

## Parameters

`ssid`

The raw binary data representing the SSID, between 1 and 32 bytes in length.

## Return Value

A new SSID, or `nil`if the data length is invalid.

## Discussion

Use this initializer when working with SSID data received from Wi-Fi enabled accessories.
Valid SSIDs conform to Wi-Fi standard length requirements.

---

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)