<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Network",
  "identifier" : "/documentation/Network/NWParameters/wifiAware(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "s:7Network12NWParametersC9WiFiAwareE04wifiE0yACXDyAD12WAParametersVzXEF"
  },
  "title" : "wifiAware(_:)"
}
-->

# wifiAware(_:)

Configure Wi-Fi Aware properties on an `NWParameters` object.

```
final func wifiAware(_ configurator: (inout WAParameters) -> Void) -> Self
```

## Parameters

`configurator`

The function that will apply the desired `WAParameters` to the network parameters.

## Return Value

the updated parameters, with the configured Wi-Fi Aware parameters applied.

## Discussion

If not previously set, parameters will have `WAParameters/defaults` applied initially.

Example:

```swift
// Create NWParameters & apply wifiAware parameters
let networkParameters = NWParameters().wifiAware {
	$0 = .defaults
}
```

---

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)