From 66abac80d8317298fbec44d0c7e456ecfcf2bfc8 Mon Sep 17 00:00:00 2001 From: Stephen <158498287+0-Blu@users.noreply.github.com> Date: Thu, 21 Nov 2024 12:12:47 -0500 Subject: [PATCH] Twitter Updates & Email Support (#762) --- .../Settings/SettingsViewController.swift | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/AltStore/Settings/SettingsViewController.swift b/AltStore/Settings/SettingsViewController.swift index 07684da3..d50fbf98 100644 --- a/AltStore/Settings/SettingsViewController.swift +++ b/AltStore/Settings/SettingsViewController.swift @@ -587,8 +587,8 @@ extension SettingsViewController let row = CreditsRow.allCases[indexPath.row] switch row { - case .developer: self.openTwitter(username: "sidestore_io") - case .operations: self.openTwitter(username: "sidestore_io") + case .developer: self.openTwitter(username: "sidestoreio") + case .operations: self.openTwitter(username: "sidestoreio") case .designer: self.openTwitter(username: "lit_ritt") case .softwareLicenses: break } @@ -619,24 +619,24 @@ extension SettingsViewController }) // Option 3: Mail -// alertController.addAction(UIAlertAction(title: "Send Email", style: .default) { _ in -// if MFMailComposeViewController.canSendMail() { -// let mailViewController = MFMailComposeViewController() -// mailViewController.mailComposeDelegate = self -// mailViewController.setToRecipients(["support@sidestore.io"]) -// -// if let version = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String { -// mailViewController.setSubject("SideStore Beta \(version) Feedback") -// } else { -// mailViewController.setSubject("SideStore Beta Feedback") -// } -// -// self.present(mailViewController, animated: true, completion: nil) -// } else { -// let toastView = ToastView(text: NSLocalizedString("Cannot Send Mail", comment: ""), detailText: nil) -// toastView.show(in: self) -// } -// }) + alertController.addAction(UIAlertAction(title: "Send Email", style: .default) { _ in + if MFMailComposeViewController.canSendMail() { + let mailViewController = MFMailComposeViewController() + mailViewController.mailComposeDelegate = self + mailViewController.setToRecipients(["support@sidestore.io"]) + + if let version = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String { + mailViewController.setSubject("SideStore Beta \(version) Feedback") + } else { + mailViewController.setSubject("SideStore Beta Feedback") + } + + self.present(mailViewController, animated: true, completion: nil) + } else { + let toastView = ToastView(text: NSLocalizedString("Cannot Send Mail", comment: ""), detailText: nil) + toastView.show(in: self) + } + }) // Cancel action alertController.addAction(UIAlertAction(title: "Cancel", style: .cancel, handler: nil))