<!--
{
  "availability" : [
    "iOS: 26.4.0 -",
    "iPadOS: 26.4.0 -",
    "macCatalyst: 26.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WiFiInfrastructure",
  "identifier" : "/documentation/WiFiInfrastructure/WIMACAddress",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Wi-Fi Infrastructure"
    ],
    "preciseIdentifier" : "s:18WiFiInfrastructure12WIMACAddressV"
  },
  "title" : "WIMACAddress"
}
-->

# WIMACAddress

A Wi-Fi MAC Address.

```
struct WIMACAddress
```

## Topics

### Identifying a MAC Address

### Working with MAC Addresses as data

[`init?(Data)`](/documentation/WiFiInfrastructure/WIMACAddress/init(_:)-6044i)

Create a MAC Address from the provided data.

[`let data: Data`](/documentation/WiFiInfrastructure/WIMACAddress/data)

The raw data value of the MAC Address.

### Working with MAC Addresses as strings

[`init?(String)`](/documentation/WiFiInfrastructure/WIMACAddress/init(_:)-7kdi9)

Creates a MAC Address from the provided case-insensitive string, of the format `"XX:XX:XX:XX:XX:XX"`.

[`var stringRepresentation: String`](/documentation/WiFiInfrastructure/WIMACAddress/stringRepresentation)

The MAC Address as an uppercase string, in the format `"XX:XX:XX:XX:XX:XX"`.

### Working with MAC Addresses as octet components

[`init?([UInt8])`](/documentation/WiFiInfrastructure/WIMACAddress/init(_:)-9xhxx)

Create a MAC Address from the provided octet components.

[`var components: [UInt8]`](/documentation/WiFiInfrastructure/WIMACAddress/components)

The MAC Address as a list of octets.

### Checking MAC Address properties

[`var isZero: Bool`](/documentation/WiFiInfrastructure/WIMACAddress/isZero)

A Boolean value that indicates whether this MAC address is the all-zero MAC Address.

[`var isBroadcast: Bool`](/documentation/WiFiInfrastructure/WIMACAddress/isBroadcast)

A Boolean value that indicates whether this is the broadcast MAC Address.

[`var isMulticast: Bool`](/documentation/WiFiInfrastructure/WIMACAddress/isMulticast)

A Boolean value that indicates whether this a multicast MAC Address.

[`var isLocallyAdministered: Bool`](/documentation/WiFiInfrastructure/WIMACAddress/isLocallyAdministered)

A Boolean value that indicates whether this a locally administered MAC Address.

### Referencing Common MAC Addresses

[`static let zero: WIMACAddress`](/documentation/WiFiInfrastructure/WIMACAddress/zero)

The all-zero MAC Address.

[`static let broadcast: WIMACAddress`](/documentation/WiFiInfrastructure/WIMACAddress/broadcast)

The broadcast MAC Address, all-ones.

### Getting a description

[`var description: String`](/documentation/WiFiInfrastructure/WIMACAddress/description)

A string description of the MAC Address, for debugging purposes.

### Structures

[`struct Hash`](/documentation/WiFiInfrastructure/WIMACAddress/Hash)

The hash of a MAC Address, which you may use to identify a device the accessory discovers over the air.

## Relationships

### Conforms To

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

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

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

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

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

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

[`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)