Social Media Post (Platform Composer)
Goal
Share directly to a specific social app when available, otherwise fall back to the share sheet.
Actions used
SocialComposerIsComposerAvailableSocialShareComposerShowSocialShareComposerGetError(optional)ShareSheetShow(fallback)
Variables
isAvailable(Bool)
Flow
State:
CheckAvailabilityAction:
SocialComposerIsComposerAvailableβisAvailableBranch:
If
isAvailableβShowSocialComposerElse β
ShowShareSheet(fallback)
State:
ShowSocialComposerAction:
SocialShareComposerShowEvents:
closedWithDoneEventβ DoneclosedWithCancelledEventβ CancelledclosedWithUnknownEventβ Unknown (optional handling)closedWithFailedEventβSocialShareComposerGetError(optional) then fallback or show error
Notes
Availability depends on platform + whether the target app is installed/configured.
Last updated
Was this helpful?