# Comment Edit Page

<figure><img src="/files/6gPMDsv9TyOsx02pyns2" alt=""><figcaption><p>Edit comment</p></figcaption></figure>

![Editing mention in a comment](/files/zOmps4KfUyLysXLlHMPz)

### Features

| Feature            | Description                                                                                                                                                                                                                                                                                |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Comment editing    | Edit comment content and tap **Save** to submit changes.                                                                                                                                                                                                                                   |
| Mention in comment | <p>Mention users in comments by typing @ to activate mention suggestion and selecting their names in the suggestion list. Up to 30 users can be mentioned per post.</p><p></p><p>An alert will be shown if character count is greater than 50000 or mentions count is greater than 30.</p> |

## Usage

**Create a view controller**

```swift
let editCommentViewController = AmityCommentEditorViewController.make(comment: AmityCommentModel, communityId: String?)
```

The function will create a new instance of `AmityCommentEditorViewController`.

**Parameters**

| Parameter     | Data type           | Description                 |
| ------------- | ------------------- | --------------------------- |
| `comment`     | `AmityCommentModel` | Comment model               |
| `communityId` | `String`            | Target community identifier |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.social.plus/social-plus-uikit/uikit-3/ios/community/components/comment-edit-page.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
