---
title: "colorLoopSet(with:expectedValues:expectedValueInterval:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrclustercolorcontrol/colorloopset(with:expectedvalues:expectedvalueinterval:completion:)"
---

# colorLoopSet(with:expectedValues:expectedValueInterval:completion:)

## Declaration

```swift
func colorLoopSet(with params: MTRColorControlClusterColorLoopSetParams, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?, completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func colorLoopSet(with params: MTRColorControlClusterColorLoopSetParams, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?) async throws
```
