---
schema_version: "1"
id: 88a257dad312aebe614de5cc2540a0faa0058ba3cf1c4fb45101e00c84ad72d8
title: Hide Attachments
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/service-cloud/messaging-in-app/guides/ios-hide-attachments.md
canonical_url: https://developer.salesforce.com/docs/service/messaging-in-app/guide/ios-hide-attachments.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 44fb882f46e2f10f8e911fc0b72c8b4968bdc68964661b32e53dd3aa8ce92994
products:
  - Enhanced In-App Chat
  - Service Cloud Developer Content
---
# Hide Attachments

Use the UIConfiguration object to hide the attachment menu in the input bar.

This article applies to the following implementations:

| UI SDK | Core SDK |
| :----: | :------: |
|   ✅   |          |

**important:** This feature requires version 1.7.0 or later of the Enhanced In-App Chat SDK.


```
/**
 * Create a UIConfiguration object and set the attachmentConfiguration
 * value to false to hide it.
 */
 let configuration = UIConfiguration(serviceAPI: <String>, organizationId: <String>, developerName: <name>, conversationId: <UUID>)
configuration.attachmentConfiguration = AttachmentConfiguration(endUserToAgent: false)
```
