mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-26 02:01:02 +00:00
Added Share button in status context menu (#37)
This commit is contained in:
parent
75cd23df5d
commit
2414c8fd10
1 changed files with 7 additions and 1 deletions
|
@ -37,7 +37,13 @@ struct StatusRowContextMenu: View {
|
|||
Label("Quote this post", systemImage: "quote.bubble")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if let url = viewModel.status.reblog?.url ?? viewModel.status.url {
|
||||
ShareLink(item: url) {
|
||||
Label("Share this post", systemImage: "square.and.arrow.up")
|
||||
}
|
||||
}
|
||||
|
||||
if let url = viewModel.status.reblog?.url ?? viewModel.status.url {
|
||||
Button { UIApplication.shared.open(url) } label: {
|
||||
Label("View in Browser", systemImage: "safari")
|
||||
|
|
Loading…
Reference in a new issue