---
title: "writeAttributeEnumAttr(withValue:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterunittesting/writeattributeenumattr(withvalue:completion:)"
---

# writeAttributeEnumAttr(withValue:completion:)

## Declaration

```swift
func writeAttributeEnumAttr(withValue value: NSNumber, completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func writeAttributeEnumAttr(withValue value: NSNumber) async throws
```
