---
title: isSelected
framework: carplay
role: symbol
role_heading: Instance Property
path: carplay/cpnowplayingbutton/isselected
---

# isSelected

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

## Declaration

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

## Discussion

Discussion When this property is set to 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. All system-provided buttons—for example, CPNowPlayingShuffleButton or CPNowPlayingRepeatButton—manage their own selected states internally. The default value is false.

## See Also

### Managing the Button State

- [isEnabled](carplay/cpnowplayingbutton/isenabled.md)
