mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-24 14:02:53 +01:00
Add context menu for link / card view
This commit is contained in:
parent
3e3e353fdd
commit
f743adb1df
@ -59,6 +59,20 @@ public struct StatusCardView: View {
|
||||
.onTapGesture {
|
||||
openURL(card.url)
|
||||
}
|
||||
.contextMenu {
|
||||
ShareLink(item: card.url) {
|
||||
Label("Share this link", systemImage: "square.and.arrow.up")
|
||||
}
|
||||
Button { openURL(card.url) } label: {
|
||||
Label("View in Browser", systemImage: "safari")
|
||||
}
|
||||
Divider()
|
||||
Button {
|
||||
UIPasteboard.general.string = card.url.absoluteString
|
||||
} label: {
|
||||
Label("Copy link", systemImage: "doc.on.doc")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user