From b7d60f8d8616a4f98abd9eef8810df59006f620b Mon Sep 17 00:00:00 2001 From: Juraj Hilje Date: Wed, 15 Nov 2023 16:16:21 +0100 Subject: [PATCH] feat(account): update AccountViewController.swift --- IVPNClient/Scenes/AccountScreen/AccountViewController.swift | 4 +++- IVPNClient/Utilities/Extensions/UIViewController+Ext.swift | 4 ---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/IVPNClient/Scenes/AccountScreen/AccountViewController.swift b/IVPNClient/Scenes/AccountScreen/AccountViewController.swift index 8b84ce39b..3c59126d7 100644 --- a/IVPNClient/Scenes/AccountScreen/AccountViewController.swift +++ b/IVPNClient/Scenes/AccountScreen/AccountViewController.swift @@ -53,7 +53,9 @@ class AccountViewController: UITableViewController { } @IBAction func deleteAccount(_ sender: UIButton) { - openAccountSettings() + if let url = URL(string: "https://www.ivpn.net/account/settings") { + UIApplication.shared.open(url, options: [:], completionHandler: nil) + } } @IBAction func addMoreTime(_ sender: Any) { diff --git a/IVPNClient/Utilities/Extensions/UIViewController+Ext.swift b/IVPNClient/Utilities/Extensions/UIViewController+Ext.swift index 909c6400b..3b35775fd 100644 --- a/IVPNClient/Utilities/Extensions/UIViewController+Ext.swift +++ b/IVPNClient/Utilities/Extensions/UIViewController+Ext.swift @@ -95,10 +95,6 @@ extension UIViewController { openWebPage("https://www.ivpn.net/privacy-mobile-app/") } - func openAccountSettings() { - openWebPage("https://www.ivpn.net/account/settings") - } - func registerUserActivity(type: String, title: String) { let activity = NSUserActivity(activityType: type) activity.title = title