<!--
{
  "availability" : [
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVKit",
  "identifier" : "/documentation/AVKit/AVRoutePickerView/setRoutePickerButtonColor(_:for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVKit"
    ],
    "preciseIdentifier" : "c:objc(cs)AVRoutePickerView(im)setRoutePickerButtonColor:forState:"
  },
  "title" : "setRoutePickerButtonColor(_:for:)"
}
-->

# setRoutePickerButtonColor(_:for:)

Sets the route picker button color for the specified state.

```
func setRoutePickerButtonColor(_ color: NSColor?, for state: AVRoutePickerView.ButtonState)
```

## Parameters

`color`

The route picker button color to set.

`state`

The button state.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)