---
title: isOn
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiswitch/ison
---

# isOn

A Boolean value that determines whether the switch is in the on or off position.

## Declaration

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

## Discussion

Discussion This property allows you to retrieve and set (without animation) a value determining whether the UISwitch object is on or off.

## See Also

### Setting the on/off state

- [setOn(_:animated:)](uikit/uiswitch/seton(_:animated:).md)
