# Comment Creation

<figure><img src="https://2352509137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX0mOAVWkotGme0iRzu%2Fuploads%2Ffwi7aoaCsFRZY5KQX4Zh%2FScreenshot%202566-02-22%20at%2005.48.18.png?alt=media&#x26;token=86948986-fcae-478a-aced-a935f33feb55" alt=""><figcaption><p>Create comment</p></figcaption></figure>

![Mention users in a comment](https://2352509137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX0mOAVWkotGme0iRzu%2Fuploads%2Ff30TQOmwoJKHBsr7dPoP%2Fcomment.png?alt=media\&token=75512c72-56e0-4202-abee-83ecac0da78d)

## Features <a href="#features" id="features"></a>

| Feature             | Description                                                                                                                                                                                                                                                                                |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Comment creation    | Add comments to post                                                                                                                                                                                                                                                                       |
| Mention in comments | <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 = AmityCommentCreatorViewController.make(comment: AmityCommentModel, communityId: String?)
```

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

**Parameters**

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