---
title: "iOS SDK: Custom data"
description: "Attach custom data to customer feedback with the Gleap iOS SDK. Follow the integration code examples."
url: https://docs.gleap.ai/en/articles/448-ios-sdk-custom-data
collection: "iOS"
updated: 2026-11-01
language: en
---

# iOS SDK: Custom data

Attach custom data to customer feedback with the Gleap iOS SDK. Follow the integration code examples.

## Add custom data

In many situations you may want to attach custom data to feedback items in order to better understand the context. You can add custom data incrementally or all at once. Any simple JSON object can be attached.

```swift
Gleap.attachCustomData(["value": "Magic", "type": "Unicorn"])
```

## Append custom data

If you want to attach custom data incrementally, you can do so with the `setCustomData` method.

```swift
Gleap.setCustomData("Magic & awesome", forKey: "value")
```

## Remove custom data

Remove custom data key value pairs by calling the following method.

```swift
Gleap.removeCustomData(forKey: "value")
```

## Clear all custom data

It's possible to clear all attached custom data by calling the following method.

```swift
Gleap.clearCustomData();
```

## 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)
