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!
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: