Skip to content

Commit

Permalink
Merge pull request #401 from ivpn/bugfix/ipad-control-panel-landscape…
Browse files Browse the repository at this point in the history
…-mode

iPad - Sliding panel not rendering when launching the app in landscape mode
  • Loading branch information
jurajhilje authored Nov 29, 2023
2 parents 88a10f0 + 7dc911c commit 84b3efb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions IVPNClient/Scenes/MainScreen/MainViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,14 @@ class MainViewController: UIViewController {

override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
showFloatingPanel()
}

override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
refreshUI()
initConnectionInfo()
startPingService()
DispatchQueue.async { [self] in
showFloatingPanel()
}
}

deinit {
Expand Down Expand Up @@ -248,7 +246,7 @@ class MainViewController: UIViewController {
}

private func showFloatingPanel() {
floatingPanel.show(animated: true)
floatingPanel.show(animated: false)
}

private func startAPIUpdate() {
Expand Down

0 comments on commit 84b3efb

Please sign in to comment.