Story Target Tab Component

Features

Feature

Description

Story Target

User can click to see a list of stories from a community or can create a story to a community.

Customization

Config IDTypeDescription

*/story_tab_component/*

Component

You can customize component_theme

*/story_tab_component/story_ring

Element

You can specify list of colors to progress_color and background_color for ring color

*/story_tab_component/create_new_story_button

Element

You can specify create_new_story_icon and background_color

For more details customization, please refer to Customization page.

Usage

// This api will be changed in the next release.
let storyTarget = StoryTarget(targetName: community.displayName, isVerifiedTarget: community.isOfficial, avatar: avatarImage, stories: storyCollection)

let viewModel = AmityStoryTabComponentViewModel(storyTargets: [storyTarget], hideStoryCreation: false, creatorAvatar: avatarImage, isGlobalFeed: false, storyCreationTargetId: communityId)

let storyTabComponent = AmityStoryTabComponent(viewModel: viewModel)
let viewController = SwiftUIHostingController(rootView: storyTabComponent)

Last updated

Change request #3026: New Content: Technical FAQ