<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarPlay",
  "identifier" : "/documentation/CarPlay/CPNowPlayingButton/isSelected",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:objc(cs)CPNowPlayingButton(py)selected"
  },
  "title" : "isSelected"
}
-->

# isSelected

A Boolean value that indicates whether the button is in a selected state.

```
var isSelected: Bool { get set }
```

## Discussion

When this property is set to <doc://com.apple.documentation/documentation/Swift/true>, CarPlay draws the button with a selected appearance to indicate its selected state. You can only update this property manually on instances of [`CPNowPlayingImageButton`](/documentation/CarPlay/CPNowPlayingImageButton). All system-provided buttons—for example, [`CPNowPlayingShuffleButton`](/documentation/CarPlay/CPNowPlayingShuffleButton) or [`CPNowPlayingRepeatButton`](/documentation/CarPlay/CPNowPlayingRepeatButton)—manage their own selected states internally.

The default value is <doc://com.apple.documentation/documentation/Swift/false>.

---

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)