I think ShareLink dont work with swipeActions but I got a solution to this problem, here it is:
.swipeActions(){
Button(action: {
let url = URL(string: "your url here")
let av = UIActivityViewController(activityItems: [url!], applicationActivities: nil)
UIApplication.shared.windows.first?.rootViewController?.present(av, animated: true, completion: nil)
}) {
Label("", systemImage: "square.and.arrow.up")
}
Thaks for the help!
Post
Replies
Boosts
Views
Activity
I already did it. But keeps not working.
The error disapear and the button still there (exactly like the pint) but when I click it, nothing happens... The card just come back to the left and only, nothing more.