Post

Replies

Boosts

Views

Activity

Reply to Help with a share button swiftUI
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:
Dec ’22
Reply to Help with a share button swiftUI
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.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’22
Reply to Help with a share button swiftUI
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:
Replies
Boosts
Views
Activity
Dec ’22