---
title: "isValidSetupPasscode(_:)"
framework: matter
role: symbol
role_heading: Type Method
path: "matter/mtrsetuppayload/isvalidsetuppasscode(_:)"
---

# isValidSetupPasscode(_:)

Check whether the provided setup passcode (represented as an unsigned integer) is a valid setup passcode.

## Declaration

```swift
class func isValidSetupPasscode(_ setupPasscode: NSNumber) -> Bool
```
