<!--
{
  "availability" : [
    "iOS: 26.2.0 -",
    "iPadOS: 26.2.0 -",
    "macCatalyst: 26.2.0 -",
    "macOS: 26.2.0 -",
    "tvOS: 26.2.0 -",
    "visionOS: 26.2.0 -",
    "watchOS: 26.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Matter",
  "identifier" : "/documentation/Matter/MTRCommissioningParameters/forceWiFiScan",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Matter"
    ],
    "preciseIdentifier" : "c:objc(cs)MTRCommissioningParameters(py)forceWiFiScan"
  },
  "title" : "forceWiFiScan"
}
-->

# forceWiFiScan

Whether to force a network scan before requesting Wi-Fi credentials.
The default is NO.

```
var forceWiFiScan: Bool { get set }
```

## Discussion

Even if this value is NO a scan may still be performed.

This value will be ignored if Wi-Fi credentials are provided or not needed.

NOTE: Not all APIs that take MTRCommissioningParameters pay attention to this
flag.

---

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)