User can click to see a list of stories from a community or can create a story to a community.
Customization
Config ID
Type
Description
*/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)
It's available as Composable element
binding.composeViewStoryTarget.setContent {
AmityStoryTargetTabComponent(community = community)
}