Story Drafting Page
This page provides draft preview for story creation.
Last updated
This page provides draft preview for story creation.
Last updated
The Story Draft Page component of Social Plus UIKit 4.0 is designed to offer users the ability to prepare and preview their story content before publishing. It supports both image and video media types, enhancing the storytelling process with a seamless draft and review experience.
Feature
Description
Draft view
User can view content of the story before sharing, add hyperlink or adjust image.
Hyperlink
User can add link and customize link text to story.
create_story_page/*/*
Page
You can customize theme
create_story_page/*/back_button
Element
You can customize back_icon
and background_color
create_story_page/*/aspect_ratio_button
Element
You can customize aspect_ratio_icon
and background_color
create_story_page/*/story_hyperlink_button
Element
You can customize hyperlink_button_icon
and background_color
create_story_page/*/hyper_link
Element
You can customize hyper_link_icon
and background_color
create_story_page/*/share_story_button
Element
You can customize share_icon
, background_color
and hide_avatar
*/hyper_link_config_component/*
Component
You can customize theme
*/hyper_link_config_component/done_button
Element
You can customize done_icon
,done_button_text
and background_color
*/hyper_link_config_component/cancel_button
Element
You can customize cancel_icon
and cancel_button_text
For more details on customization, please refer to the Customization page.
Integrating the Story Draft Page allows users to preview and potentially edit their story drafts before publication. This integration involves creating instances of the AmityDraftStoryPage
for image or video media types, showcasing the versatility of the component in handling different content forms:
These snippets illustrate how to instantiate the draft page for both image and video stories, integrating them into the SwiftUI view hierarchy. The distinction between media types (image vs. video) allows for tailored preview experiences, ensuring users can effectively review and adjust their stories as needed.