Key Benefit: Enable rich content creation and engagement with comprehensive post components supporting text, media, polls, mentions, link previews, and advanced accessibility features across all platforms.

Feature Overview

The Post Components UIKit provides a complete suite of tools for post creation, editing, and content management. From rich media posts and interactive polls to advanced features like @mentions, link previews, and accessibility support, these components create the foundation for engaging social content experiences.

Content Creation

Rich Post Creation
  • Text, image, and video posts
  • Interactive poll creation
  • Media attachment workflows
  • Post target selection

Post Management

Content Management
  • Post editing capabilities
  • Content detail views
  • Engagement features
  • Moderation tools

Advanced Features

Enhanced Interactions
  • @Mention functionality
  • Link preview generation
  • Brand user support
  • Accessibility compliance

Media & Attachments

Rich Media Support
  • Image and video attachments
  • File upload capabilities
  • Alt text for accessibility
  • Media preview components

Platform Support

FeatureiOSAndroidReactReact NativeFlutter
Create Text, Image, Video Post
Edit Text, Image, Video Post
Create Poll Post
Report Post
Comments & Reactions
Mention
Link Preview
Brand User Post
Ads
Alt text for Image Post
Legend: ✅ Full Support | ❌ Not Available

Post Types & Features

Implementation Guide

Complete post viewing experienceThe Post Detail Page displays comprehensive post information, including content, engagements, and comments.

Features

FeatureDescription
Engagement OptionsUsers can like, comment, and interact with posts directly from this page
Content DisplayFull post content with media, polls, and interactive elements
Comment IntegrationIntegrated comment tray for discussions

Customization Options

Config IDTypeDescription
post_detail_page/*/*ThemeYou can customize page theme
post_detail_page/*/back_buttonElementYou can update back button icon
post_detail_page/*/menu_buttonElementYou can update menu button icon

Code Examples

let postDetailPage = AmityPostDetailPage(id: "<post-id>")
let viewController = AmitySwiftUIHostingController(rootView: postDetailPage)
class CustomAmityPostDetailPageBehavior: AmityPostDetailPageBehavior {
    override init() {
        super.init()
    }
}

// Call this function to setup custom behaviour class in UIKit
func setPostDetailPageBehaviour() {
    let customBehavior = CustomAmityPostDetailPageBehavior()
    AmityUIKit4Manager.behaviour.postDetailPageBehavior = customBehavior
}

Component Management Strategies

Best Practices

Implementation Strategy: Start with AmityPostDetailPage and AmityPostContentComponent for displaying posts, then add AmityPostComposerPage for creation workflows. Integrate media attachment components and poll features based on your community engagement goals.