ShareLink
A view that controls a sharing presentation
Platform Compatibility
Tags
SwiftUI Code
HStack {
ShareLink(item: URL(string: "https://exploreswiftui.com")!)
ShareLink("Explore SwiftUI", item: URL(string: "https://exploreswiftui.com")!)
.padding(.horizontal)
ShareLink(item: URL(string: "https://exploreswiftui.com")!) {
Label("Foo", systemImage: "cube.transparent")
}
}