Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit 6075edc

Browse files
BasThomasrnystrom
authored andcommitted
Add "Jump to..." to make an action sheet more expressive (#1405)
1 parent fd5e41c commit 6075edc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Classes/View Controllers/UIViewController+FilePathTitle.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ extension UIViewController {
4545
}
4646

4747
func showAlert(filePath: FilePath, sender: UIView) {
48-
let alert = UIAlertController.configured(preferredStyle: .actionSheet)
48+
let alertTitle = NSLocalizedString("Jump to...", comment: "Alert sheet title to jump to a filepath")
49+
let alert = UIAlertController.configured(title: alertTitle, preferredStyle: .actionSheet)
4950
weak var weakSelf = self
5051

5152
if let components = filePath.baseComponents {

0 commit comments

Comments
 (0)