Skip to content

Instantly share code, notes, and snippets.

@anupamchugh
Created June 8, 2022 07:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anupamchugh/34f4d82b0be835bf2e024d7d14458fbf to your computer and use it in GitHub Desktop.
Save anupamchugh/34f4d82b0be835bf2e024d7d14458fbf to your computer and use it in GitHub Desktop.
struct ShareLinkViews: View {
let link = URL(string: "https://www.iosdevie.com")!
var body: some View {
VStack(spacing: 10) {
ShareLink(item: link)
ShareLink(item: link) {
Text("Share Without Icon")
}
ShareLink(item: link) {
Label("Share With Custom Icon", systemImage: "arrow.up")
}
.presentationDetents([.medium])
ShareLink(item: link) {
Button("Button Doesn't Work") {}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment