---
title: lockESIM
framework: managedsettings
role: symbol
role_heading: Instance Property
path: managedsettings/cellularsettings/lockesim-swift.property
---

# lockESIM

A Boolean value that indicates whether to prevent the user from changing their eSIM settings.

## Declaration

```swift
var lockESIM: Bool? { get set }
```

## Discussion

Discussion If your app doesn’t configure this setting, the value is nil.

## See Also

### Locking the device’s eSIM settings

- [lockESIM](managedsettings/cellularsettings/lockesim-swift.type.property.md)
