mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-10 16:25:26 +00:00
Add context menu for link / card view
This commit is contained in:
parent
3e3e353fdd
commit
f743adb1df
1 changed files with 14 additions and 0 deletions
|
@ -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 a new issue