diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2020-04-01 12:22:32 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2020-04-01 12:37:27 +0200 |
| commit | 0a523775902dd02ed1797e9d63cb83737eef5c00 (patch) | |
| tree | 4d9a96670d4d3aaae91f86ed00289e48da6e7659 | |
| parent | ce30ebe25998b88aa24514d7dfe86588ee91ef3a (diff) | |
| download | mullvadvpn-0a523775902dd02ed1797e9d63cb83737eef5c00.tar.xz mullvadvpn-0a523775902dd02ed1797e9d63cb83737eef5c00.zip | |
Fix connection info visibility
| -rw-r--r-- | ios/MullvadVPN/ConnectionPanelView.swift | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ios/MullvadVPN/ConnectionPanelView.swift b/ios/MullvadVPN/ConnectionPanelView.swift index 85ed53a12e..e9d5da93c3 100644 --- a/ios/MullvadVPN/ConnectionPanelView.swift +++ b/ios/MullvadVPN/ConnectionPanelView.swift @@ -72,8 +72,8 @@ class ConnectionPanelView: UIView { } private func updateConnectionInfoVisibility() { - stackView.isHidden = showsConnectionInfo - collapseButton.style = showsConnectionInfo ? .down : .up + stackView.isHidden = !showsConnectionInfo + collapseButton.style = showsConnectionInfo ? .up : .down } private func commonInit() { @@ -108,6 +108,8 @@ class ConnectionPanelView: UIView { textLabelLayoutGuide.trailingAnchor .constraint(equalTo: outAddressRow.textLabel.trailingAnchor) ]) + + updateConnectionInfoVisibility() } } |
