---
title: isEnabled
framework: carplay
role: symbol
role_heading: Instance Property
path: carplay/cpbutton/isenabled
---

# isEnabled

A Boolean value that determines whether the button is in an enabled state.

## Declaration

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

## Discussion

Discussion When false, CarPlay doesn’t call the button’s handler, and it changes the button’s appearance to reflect its disabled state. The default value is true.

## See Also

### Configuring the Button’s Attributes

- [title](carplay/cpbutton/title.md)
