mirror of
https://github.com/lil-org/wallet.git
synced 2024-12-28 23:14:11 +03:00
cleanup menu on ios
This commit is contained in:
parent
b81eeebc6f
commit
580a6bfd4b
@ -8,7 +8,6 @@ extension URL {
|
||||
static let github = URL(string: "https://tokenary.io/github")!
|
||||
static let email = URL(string: "mailto:support@tokenary.io")!
|
||||
static let iosSafariGuide = URL(string: "https://tokenary.io/guide-ios")!
|
||||
static let appStore = URL(string: "https://tokenary.io/get")!
|
||||
static let updateApp = URL(string: "https://lil.org/update")!
|
||||
|
||||
}
|
||||
|
@ -77,7 +77,6 @@ struct Strings {
|
||||
static let unknownWebsite = "Unknown website ⚠️"
|
||||
static let calculating = "Calculating..."
|
||||
static let howToEnableSafariExtension = "How to enable Safari extension?"
|
||||
static let shareInvite = "Share an invite"
|
||||
static let approveTransaction = "Approve Transaction"
|
||||
static let multicoinWallet = "Multicoin Wallet"
|
||||
static let privateKeyWallets = "Private Key Wallets"
|
||||
|
@ -396,21 +396,15 @@ class AccountsListViewController: UIViewController, DataStateContainer {
|
||||
@objc private func preferencesButtonTapped() {
|
||||
let actionSheet = UIAlertController(title: "❤️ " + Strings.tokenary.uppercased() + " ⭐️", message: nil, preferredStyle: .actionSheet)
|
||||
actionSheet.popoverPresentationController?.barButtonItem = preferencesItem
|
||||
let xAction = UIAlertAction(title: Strings.viewOnX, style: .default) { _ in
|
||||
let xAction = UIAlertAction(title: Strings.viewOnX.withEllipsis, style: .default) { _ in
|
||||
UIApplication.shared.open(URL.x)
|
||||
}
|
||||
let githubAction = UIAlertAction(title: Strings.viewOnGithub, style: .default) { _ in
|
||||
let githubAction = UIAlertAction(title: Strings.viewOnGithub.withEllipsis, style: .default) { _ in
|
||||
UIApplication.shared.open(URL.github)
|
||||
}
|
||||
let emailAction = UIAlertAction(title: Strings.dropUsALine.withEllipsis, style: .default) { _ in
|
||||
UIApplication.shared.open(URL.email)
|
||||
}
|
||||
let shareInvite = UIAlertAction(title: Strings.shareInvite.withEllipsis, style: .default) { [weak self] _ in
|
||||
let shareViewController = UIActivityViewController(activityItems: [URL.appStore], applicationActivities: nil)
|
||||
shareViewController.popoverPresentationController?.barButtonItem = self?.preferencesItem
|
||||
shareViewController.excludedActivityTypes = [.addToReadingList, .airDrop, .assignToContact, .openInIBooks, .postToFlickr, .postToVimeo, .markupAsPDF]
|
||||
self?.present(shareViewController, animated: true)
|
||||
}
|
||||
let howToEnableSafariExtension = UIAlertAction(title: Strings.howToEnableSafariExtension, style: .default) { _ in
|
||||
UIApplication.shared.open(URL.iosSafariGuide)
|
||||
}
|
||||
@ -418,7 +412,6 @@ class AccountsListViewController: UIViewController, DataStateContainer {
|
||||
actionSheet.addAction(xAction)
|
||||
actionSheet.addAction(githubAction)
|
||||
actionSheet.addAction(emailAction)
|
||||
actionSheet.addAction(shareInvite)
|
||||
actionSheet.addAction(howToEnableSafariExtension)
|
||||
actionSheet.addAction(cancelAction)
|
||||
present(actionSheet, animated: true)
|
||||
|
Loading…
Reference in New Issue
Block a user