Social Media Post (Platform Composer)

Goal

Share directly to a specific social app when available, otherwise fall back to the share sheet.

Actions used

  • SocialComposerIsComposerAvailable

  • SocialShareComposerShow

  • SocialShareComposerGetError (optional)

  • ShareSheetShow (fallback)

Variables

  • isAvailable (Bool)

Flow

  1. State: CheckAvailability

    • Action: SocialComposerIsComposerAvailable β†’ isAvailable

    • Branch:

      • If isAvailable β†’ ShowSocialComposer

      • Else β†’ ShowShareSheet (fallback)

  2. State: ShowSocialComposer

    • Action: SocialShareComposerShow

    • Events:

      • closedWithDoneEvent β†’ Done

      • closedWithCancelledEvent β†’ Cancelled

      • closedWithUnknownEvent β†’ 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?