Key Benefit: Build comprehensive social experiences with pre-built components for content feeds, community discovery, post creation, and user engagement - all designed to work seamlessly together in a social home page.

Feature Overview

The Social Feeds & Content Discovery UIKit provides a complete suite of components for building engaging social home experiences. From dynamic newsfeeds and story displays to community discovery and content creation tools, these components create the foundation for modern social applications.

Content Feeds

Dynamic Social Streams
  • Global newsfeed with posts and stories
  • Real-time content updates and interactions
  • Empty state handling and loading
  • Post engagement (likes, comments, shares)

Content Creation

User-Generated Content
  • Post and story creation menus
  • Multiple content types support
  • Target audience selection
  • Quick creation workflows

Community Discovery

Explore & Connect
  • Community categories browsing
  • Recommended communities
  • Trending communities display
  • Discovery optimization

Navigation & Organization

Seamless User Experience
  • Tab-based navigation system
  • Custom navigation behaviors
  • Feed organization and filtering
  • User flow optimization

Implementation Guide

Complete social home experienceThe AmitySocialHomePage serves as the central hub integrating multiple social components for a comprehensive user experience.

Features

FeatureDescription
Global Feed NavigationNavigate through different segments like newsfeed, explore, my communities
Newsfeed ViewingDisplays recent posts, updates, and activities from connections and followed communities
Community AccessQuick access to user communities with options to join more
Engagement OptionsLike, comment, and interact with posts directly from the page

Customization Options

Config IDTypeDescription
social_home_page/*/*PageCustomize page theme
social_home_page/*/newsfeed_buttonElementCustomize text
social_home_page/*/explore_buttonElementCustomize text
social_home_page/*/my_communities_buttonElementCustomize text

Code Examples

let socialHomePage = AmitySocialHomePage()
let viewController = AmitySwiftUIHostingController(rootView: socialHomePage)
Navigation Customization: Custom navigation behavior can be implemented to enhance interaction flow, including overriding default actions for global search or community search.
Custom navigation behavior can be implemented to enhance or modify the interaction flow on the AmitySocialHomePage.
class CustomAmitySocialHomePageBehavior: AmitySocialHomePageBehavior {
    override init() {
        super.init()
    }
    
    override func goToGlobalSearch(context: AmitySocialHomePageBehavior.Context) {
        // Custom implementation for navigating to Global Search
    }
    
    override func goToCommunitySearch(context: AmitySocialHomePageBehavior.Context) {
        // Custom implementation for navigating to Community Search
    }
}

// Call this function to setup custom behaviour class in UIKit
func setSocialHomePageBehaviour() {
    let customBehavior = CustomAmitySocialHomePageBehavior()
    AmityUIKit4Manager.behaviour.socialHomePageBehavior = customBehavior
}

Component Management Strategies

Best Practices

Implementation Strategy: Start with AmitySocialHomePage for a complete experience, then customize individual components (newsfeed, create post menu, community discovery) based on your specific user engagement goals and brand requirements.