]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
WireGuardApp: Pin status switch to cell margin
authorAndrej Mihajlov <and@mullvad.net>
Mon, 14 Dec 2020 15:48:53 +0000 (16:48 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 15 Dec 2020 14:56:22 +0000 (15:56 +0100)
Signed-off-by: Andrej Mihajlov <and@mullvad.net>
Sources/WireGuardApp/UI/iOS/View/TunnelListCell.swift

index 8065f9e0a6865329f185c641ebc3662d85c63c9d..9d8cc82d6668d06a60238d567b8bb4b3b92ffaae 100644 (file)
@@ -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)