---
title: "iOS SDK: Widget control"
description: "Open and close the Gleap widget programmatically with the Gleap iOS SDK. Follow the integration code examples."
url: https://docs.gleap.ai/en/articles/458-ios-sdk-widget-control
collection: "iOS"
updated: 2026-11-01
language: en
---

# iOS SDK: Widget control

Open and close the Gleap widget programmatically with the Gleap iOS SDK. Follow the integration code examples.

In some situations you might want to take full control over showing the Gleap widget. This can be achieved with the following method.

### Open the Gleap widget

```swift
Gleap.open()
```

This method opens the Gleap widget and shows the feedback menu options.

### Close the Gleap widget

```swift
Gleap.close()
```

This method closes the Gleap widget.

### Widget open status

It's possible to request the widget open status with the following method.

```swift
Gleap.isOpened()
```

## Related

- [iOS SDK setup](https://docs.gleap.ai/en/articles/434-ios-sdk-setup.md)
- [iOS SDK: User identity](https://docs.gleap.ai/en/articles/435-ios-sdk-user-identity.md)
- [iOS SDK: Callbacks](https://docs.gleap.ai/en/articles/436-ios-sdk-callbacks.md)
- [iOS SDK: Frontend tools](https://docs.gleap.ai/en/articles/437-ios-sdk-frontend-tools.md)
- [iOS SDK: Forms](https://docs.gleap.ai/en/articles/438-ios-sdk-forms.md)
