---
title: "init(_:)"
framework: wifiinfrastructure
role: symbol
role_heading: Initializer
path: "wifiinfrastructure/wimacaddress/init(_:)-7kdi9"
---

# init(_:)

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

## Declaration

```swift
init?(_ macAddress: String)
```

## Parameters

- `macAddress`: The BSSID as a String.

## Return Value

Return Value The mac address, or nil if the input data was invalid and it could not be constructed.

## See Also

### Working with MAC Addresses as strings

- [stringRepresentation](wifiinfrastructure/wimacaddress/stringrepresentation.md)
