---
title: "readAttributePrimary2X(completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclustercolorcontrol/readattributeprimary2x(completion:)"
---

# readAttributePrimary2X(completion:)

## Declaration

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

```swift
func readAttributePrimary2X() async throws -> NSNumber
```
