diff --git a/Sources/Brave/Frontend/Settings/SettingsViewController.swift b/Sources/Brave/Frontend/Settings/SettingsViewController.swift index 2c5a17c7dd2..7aea2e9ada8 100644 --- a/Sources/Brave/Frontend/Settings/SettingsViewController.swift +++ b/Sources/Brave/Frontend/Settings/SettingsViewController.swift @@ -741,9 +741,22 @@ class SettingsViewController: TableViewController { UIPasteboard.general.setSecureString(AppStorageDebugComposer.compose(), expirationDate: Date().addingTimeInterval(2.minutes)) } + + let viewMoreDetails = UIAlertAction(title: Strings.viewAllVersionInfo, style: .default) { [unowned self, weak actionSheet] _ in + let versionController = p3aUtilities.histogramsController().then { + //TODO: Remove in 1.63.x + versionController.loadViewIfNeeded() + $0.perform(Selector("loadURL:"), with: "chrome://version?show-variations-cmd") + } + + actionSheet?.dismiss(animated: true, completion: { + self.present(versionController, animated: true) + }) + } actionSheet.addAction(copyDebugInfoAction) actionSheet.addAction(copyAppInfoAction) + actionSheet.addAction(viewMoreDetails) actionSheet.addAction(UIAlertAction(title: Strings.cancelButtonTitle, style: .cancel, handler: nil)) self.navigationController?.present(actionSheet, animated: true, completion: nil) }, cellClass: MultilineValue1Cell.self), diff --git a/Sources/BraveStrings/BraveStrings.swift b/Sources/BraveStrings/BraveStrings.swift index a09c76e62f2..a5447cac9db 100644 --- a/Sources/BraveStrings/BraveStrings.swift +++ b/Sources/BraveStrings/BraveStrings.swift @@ -1167,6 +1167,7 @@ extension Strings { NSLocalizedString("copyAppSizeInfoToClipboard", tableName: "BraveShared", bundle: .module, value: "Copy app size info to clipboard.", comment: "Copy app info to clipboard action sheet action.") + public static let viewAllVersionInfo = NSLocalizedString("copyAppSizeInfoToClipboard", tableName: "BraveShared", bundle: .module, value: "View all version info.", comment: "View all version info action sheet action.") public static let blockThirdPartyCookies = NSLocalizedString("Block3rdPartyCookies", tableName: "BraveShared", bundle: .module, value: "Block 3rd party cookies", comment: "cookie settings option") public static let blockAllCookies = NSLocalizedString("BlockAllCookies", tableName: "BraveShared", bundle: .module, value: "Block all Cookies", comment: "Title for setting to block all website cookies.") public static let blockAllCookiesAction = NSLocalizedString("BlockAllCookiesAction", tableName: "BraveShared", bundle: .module, value: "Block All", comment: "block all cookies settings action title")