WireGuardApp: Pin status switch to cell margin

Signed-off-by: Andrej Mihajlov <and@mullvad.net>
This commit is contained in:
Andrej Mihajlov 2020-12-14 16:48:53 +01:00 committed by Jason A. Donenfeld
parent d3400e3a80
commit facf776602
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ class TunnelListCell: UITableViewCell {
statusSwitch.translatesAutoresizingMaskIntoConstraints = false statusSwitch.translatesAutoresizingMaskIntoConstraints = false
NSLayoutConstraint.activate([ NSLayoutConstraint.activate([
statusSwitch.centerYAnchor.constraint(equalTo: contentView.centerYAnchor), statusSwitch.centerYAnchor.constraint(equalTo: contentView.centerYAnchor),
contentView.trailingAnchor.constraint(equalTo: statusSwitch.trailingAnchor) statusSwitch.trailingAnchor.constraint(equalTo: contentView.layoutMarginsGuide.trailingAnchor)
]) ])
contentView.addSubview(busyIndicator) contentView.addSubview(busyIndicator)