Comment Tray Component
This component provide viewing comment, creating and editing, adding reaction.
The Comment Tray Component in Amity UIKit 4.0 facilitates a dynamic interaction layer for users to engage with stories or posts through comments and reactions. This customizable component is designed to foster community engagement and conversation directly within the content viewing experience.
Features
View, create or edit comments | User can view, create or edit text comments or reply comments, can also add reaction to comment. |
Customization
Config ID | Type | Description |
---|---|---|
| Component | You can customize |
| Element | You can customize |
| Element | You can customize |
| Component | You can customize |
For more details customization, please refer to Customization page.
Usage
For iOS applications, integrating the Comment Tray Component involves initializing it with a reference ID (such as a story or post ID) and specifying the reference type. Here's a simple example:
This snippet sets up the comment tray for a specific story, ready to be incorporated into the app’s UI through a SwiftUI hosting controller.
Last updated