# Post Detail Page

<figure><img src="https://2352509137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX0mOAVWkotGme0iRzu%2Fuploads%2FP7PEvipiEsu6q777BOFt%2FScreenshot%202566-02-22%20at%2005.45.27.png?alt=media&#x26;token=d8c51e6d-a304-455d-b69c-f5d604bbbc9f" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Reply feature is coming soon.
{% endhint %}

### Features

| Feature                                                                                                          | Description                                                                                                                                    |
| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| Post content                                                                                                     | View content of the post including reactions and comments.                                                                                     |
| Edit post                                                                                                        | Navigate to [Post Edit page](https://docs.social.plus/social-plus-uikit/uikit-3/ios/community/components/post-edit)                            |
| Delete post                                                                                                      | Tap **...** and select **Delete post**. Tap **Delete** in the confirmation message to confirm post deletion. Otherwise, tap **Cancel**.        |
| Report post                                                                                                      | Tap **...** and tap **Report** or **Undo Report** to report or undo report respectively.                                                       |
| [Comment creation](https://docs.social.plus/social-plus-uikit/uikit-3/ios/community/components/comment-creation) | Create a comment by adding text to the compose bar and tapping Post                                                                            |
| Edit comment                                                                                                     | Will navigate to [Comment Edit page](https://docs.social.plus/social-plus-uikit/uikit-3/ios/community/components/comment-edit-page)            |
| Delete comment                                                                                                   | Tap **...** below the comment and tap **Delete comment.** Tap Delete in the confirmation message to confirm deletion. Otherwise, press Cancel. |

### How to use

**Create a view controller**

```swift
let viewController = AmityPostDetailViewController.make(withPostId: "POST_ID")
```

## Link Preview in Post

The Link Preview feature in posts is designed to enrich user experience by providing a visual and informative preview of external links. This feature enhances content sharing, making it more interactive and engaging. This feature significantly improves the user's posting experience. It allows for a preliminary check of the link's accuracy and relevance, adding visual appeal to the post with an informative preview.

When a user includes a link in a post, the feature automatically extracts and displays key information: the title, main image, and a short description, creating an informative preview of the linked content. If the link is unavailable, it will show a empty placeholder or error view instead.

<figure><img src="https://2352509137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX0mOAVWkotGme0iRzu%2Fuploads%2FBVi4QtPWXQTzzwhHQ84V%2Fimage.png?alt=media&#x26;token=2d52c235-13b5-40bc-a743-01c71f0a8a4f" alt=""><figcaption></figcaption></figure>

#### **Editing Capability**

Users can edit the link preview even after the post is created. This flexibility ensures that the information remains up-to-date and accurate, enhancing the overall quality of the post.

#### **Limitations and Use Cases**:&#x20;

The preview feature is designed to only display images, titles, and descriptions after a post is created. This ensures clarity and relevance in the shared content.
