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

# readAttributeCurrentX(completion:)

## Declaration

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

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