diff options
author | Andrej Mihajlov <and@mullvad.net> | 2020-12-14 16:48:53 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-12-15 15:56:22 +0100 |
commit | facf7766023ce503e0c3ef76d84ddfee6c0c78e3 (patch) | |
tree | 6a1fd2b8099d1c869eab8bb5255d1ef29007b8d3 | |
parent | WireGuardApp: Refactor indicator view initialization (diff) | |
download | wireguard-apple-facf7766023ce503e0c3ef76d84ddfee6c0c78e3.tar.xz wireguard-apple-facf7766023ce503e0c3ef76d84ddfee6c0c78e3.zip |
WireGuardApp: Pin status switch to cell margin
Signed-off-by: Andrej Mihajlov <and@mullvad.net>
-rw-r--r-- | Sources/WireGuardApp/UI/iOS/View/TunnelListCell.swift | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Sources/WireGuardApp/UI/iOS/View/TunnelListCell.swift b/Sources/WireGuardApp/UI/iOS/View/TunnelListCell.swift index 8065f9e..9d8cc82 100644 --- a/Sources/WireGuardApp/UI/iOS/View/TunnelListCell.swift +++ b/Sources/WireGuardApp/UI/iOS/View/TunnelListCell.swift @@ -51,7 +51,7 @@ class TunnelListCell: UITableViewCell { statusSwitch.translatesAutoresizingMaskIntoConstraints = false NSLayoutConstraint.activate([ statusSwitch.centerYAnchor.constraint(equalTo: contentView.centerYAnchor), - contentView.trailingAnchor.constraint(equalTo: statusSwitch.trailingAnchor) + statusSwitch.trailingAnchor.constraint(equalTo: contentView.layoutMarginsGuide.trailingAnchor) ]) contentView.addSubview(busyIndicator) |