# Recent chat

![Empty chat](https://2352509137-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MX0mOAVWkotGme0iRzu%2F-MX6lZoZtkCSRda3DVLV%2F-MX6mFT8Ug5YvdDVOq4y%2Fimage%20\(40\).png?alt=media\&token=5e81a421-35ba-48d1-bd28-59c5dce65d7d)

![](https://2352509137-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MX0mOAVWkotGme0iRzu%2F-MX6lZoZtkCSRda3DVLV%2F-MX6mKpeXidKCViiX1g7%2Fimage%20\(41\).png?alt=media\&token=c9e94e2e-bcc2-4938-a47d-03d7d45ff931)

### Features

| Feature                    | Description                                                                                                                                                               |
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Recent chat list           | User can see a list of the most recent chats                                                                                                                              |
| Navigation to Message list | When a user selects a chat, UIKit opens a [chatroom page](https://docs.social.plus/social-plus-uikit/uikit-3/android/chat-uikit/using-only-some-components/chatroom-page) |

### Usage

```swift
import UIKit
import AmityUIKit

class ClientViewController: UIViewController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
    }
    
    @IBAction func showChatListPage(_ sender: UIButton) {
        let recentChatVC = AmityRecentChatViewController.make()
        present(recentChatVC, animated: true)
    }
}
```
