summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2020-07-23 10:29:19 +0300
committerAndrej Mihajlov <and@mullvad.net>2020-07-23 15:13:24 +0300
commit87f26c5deaabedf39f87b866f6908115a5aaf1db (patch)
tree811a2d43ee9ed49bc0e556f68b0c7492c4e4cb67
parentbcd40023caecb09dfc551a7ecafafb4011867340 (diff)
downloadmullvadvpn-87f26c5deaabedf39f87b866f6908115a5aaf1db.tar.xz
mullvadvpn-87f26c5deaabedf39f87b866f6908115a5aaf1db.zip
Align status indicator center around tick image view
-rw-r--r--ios/MullvadVPN/SelectLocationCell.swift10
1 files changed, 5 insertions, 5 deletions
diff --git a/ios/MullvadVPN/SelectLocationCell.swift b/ios/MullvadVPN/SelectLocationCell.swift
index 40cb9e2b64..a3f87d3850 100644
--- a/ios/MullvadVPN/SelectLocationCell.swift
+++ b/ios/MullvadVPN/SelectLocationCell.swift
@@ -105,13 +105,13 @@ class SelectLocationCell: BasicTableViewCell {
updateBackgroundColor()
NSLayoutConstraint.activate([
+ tickImageView.leadingAnchor.constraint(equalTo: contentView.layoutMarginsGuide.leadingAnchor),
+ tickImageView.centerYAnchor.constraint(equalTo: contentView.centerYAnchor),
+
statusIndicator.widthAnchor.constraint(equalToConstant: 16),
statusIndicator.heightAnchor.constraint(equalToConstant: 16),
- statusIndicator.leadingAnchor.constraint(equalTo: contentView.layoutMarginsGuide.leadingAnchor),
- statusIndicator.centerYAnchor.constraint(equalTo: contentView.centerYAnchor),
-
- tickImageView.centerXAnchor.constraint(equalTo: statusIndicator.centerXAnchor),
- tickImageView.centerYAnchor.constraint(equalTo: statusIndicator.centerYAnchor),
+ statusIndicator.centerXAnchor.constraint(equalTo: tickImageView.centerXAnchor),
+ statusIndicator.centerYAnchor.constraint(equalTo: tickImageView.centerYAnchor),
locationLabel.leadingAnchor.constraint(equalTo: statusIndicator.trailingAnchor, constant: 12),
locationLabel.trailingAnchor.constraint(greaterThanOrEqualTo: collapseButton.leadingAnchor, constant: 0),