Draft Page
This page provides draft preview for story creation



Features
Feature
Description
Post content
User can view content of the post including reactions and comments.
Customization
create_story_page/*/*
Page
You can customize page_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
For more details customization, please refer to Customization page.
Usage
// Draft Video Story
let draftStoryPage = AmityDraftStoryPage(targetId: "<community-id>"", mediaType: .video(videoURL)
// Draft Image Story
let draftStoryPage = AmityDraftStoryPage(targetId: "<community-id>"", mediaType: .image(imageURL, image))
let controller = SwiftUIHostingController(rootView: draftStoryPage)
Last updated
Was this helpful?