---
title: isEnabled
framework: networkextension
role: symbol
role_heading: Instance Property
path: networkextension/nevpnmanager/isenabled
---

# isEnabled

A Boolean used to toggle the enabled state of the VPN configuration.

## Declaration

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

## Discussion

Discussion A VPN configuration must be enabled before it can be used to bring up a VPN tunnel. Only one Personal VPN configuration can be enabled simultaneously on the system. If another Personal VPN configuration is enabled, then this property will be automatically set to false in the Network Extension preferences. Note that you will need to re-load the VPN configuration from the preferences in order to see the change in value. You can register with NotificationCenter to observe the NEVPNConfigurationChangeNotification notification for the NEVPNManager object so that your code can detect when the VPN configuration has been disabled.

## See Also

### Accessing VPN configuration properties

- [protocolConfiguration](networkextension/nevpnmanager/protocolconfiguration.md)
- [protocol](networkextension/nevpnmanager/protocol.md)
- [localizedDescription](networkextension/nevpnmanager/localizeddescription.md)
- [isOnDemandEnabled](networkextension/nevpnmanager/isondemandenabled.md)
- [onDemandRules](networkextension/nevpnmanager/ondemandrules.md)
