Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Pr0gramm/Pr0gramm/Detail/DetailViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -286,15 +286,15 @@ extension DetailViewController: UIContextMenuInteractionDelegate {
self.coordinator?.showShareSheet(with: [self.viewModel.shareLink], from: imageView)
}

let shareImageAction = UIAction(title: "Bild-Link teilen", image: UIImage(systemName: "square.and.arrow.up")) { [unowned self] _ in
let shareDirectAction = UIAction(title: "Direktlink teilen", image: UIImage(systemName: "square.and.arrow.up")) { [unowned self] _ in
self.coordinator?.showShareSheet(with: [self.viewModel.item.url], from: imageView)
}

let browserAction = UIAction(title: "Im Browser öffnen", image: UIImage(systemName: "safari")) { [unowned self] _ in
UIApplication.shared.open(self.viewModel.shareLink)
}

return UIMenu(title: "", children: [downloadAction, fullscreenAction, saveToCameraRollAction, shareAction, shareImageAction, browserAction])
return UIMenu(title: "", children: [downloadAction, fullscreenAction, saveToCameraRollAction, shareAction, shareDirectAction, browserAction])
}
}

Expand Down