---
title: "wifiAware(_:)"
framework: Network
role: symbol
role_heading: Instance Method
platforms: [iOS 26.0+, iPadOS 26.0+]
path: "network/nwparameters/wifiaware(_:)"
---

# wifiAware(_:)

Configure Wi-Fi Aware properties on an NWParameters object.

## Declaration

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

## Parameters

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

## Return Value

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

## Discussion

Discussion If not previously set, parameters will have WAParameters/defaults applied initially. Example: // Create NWParameters & apply wifiAware parameters let networkParameters = NWParameters().wifiAware { 	$0 = .defaults }
