Skip to content

Instantly share code, notes, and snippets.

@jamesporter
Created May 8, 2022 10:55
Show Gist options
  • Save jamesporter/52a38b88d7d378cc107427a38a3ad250 to your computer and use it in GitHub Desktop.
Save jamesporter/52a38b88d7d378cc107427a38a3ad250 to your computer and use it in GitHub Desktop.
Share Sheet in SwiftUI

Add SwiftUIX package and import, then put AppActivityView in sheet

.sheet(isPresented: $isSharing) {
AppActivityView(activityItems: ["something", URL(string: "https://apps.apple.com/us/app/deadly-divisors/id888788693")!])
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment