From 7dc911c0b0330f256217203f896f70857998a8a4 Mon Sep 17 00:00:00 2001 From: Juraj Hilje Date: Wed, 22 Nov 2023 14:31:31 +0100 Subject: [PATCH] fix(ui): update showFloatingPanel method in MainViewController --- IVPNClient/Scenes/MainScreen/MainViewController.swift | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/IVPNClient/Scenes/MainScreen/MainViewController.swift b/IVPNClient/Scenes/MainScreen/MainViewController.swift index 096097fd2..efaa9804d 100644 --- a/IVPNClient/Scenes/MainScreen/MainViewController.swift +++ b/IVPNClient/Scenes/MainScreen/MainViewController.swift @@ -75,6 +75,7 @@ class MainViewController: UIViewController { override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) + showFloatingPanel() } override func viewDidAppear(_ animated: Bool) { @@ -82,9 +83,6 @@ class MainViewController: UIViewController { refreshUI() initConnectionInfo() startPingService() - DispatchQueue.async { [self] in - showFloatingPanel() - } } deinit { @@ -248,7 +246,7 @@ class MainViewController: UIViewController { } private func showFloatingPanel() { - floatingPanel.show(animated: true) + floatingPanel.show(animated: false) } private func startAPIUpdate() {