WireGuardApp: Pin status switch to cell margin
Signed-off-by: Andrej Mihajlov <and@mullvad.net>
This commit is contained in:
parent
d3400e3a80
commit
facf776602
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue