diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2020-07-23 10:29:19 +0300 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2020-07-23 15:13:24 +0300 |
| commit | 87f26c5deaabedf39f87b866f6908115a5aaf1db (patch) | |
| tree | 811a2d43ee9ed49bc0e556f68b0c7492c4e4cb67 | |
| parent | bcd40023caecb09dfc551a7ecafafb4011867340 (diff) | |
| download | mullvadvpn-87f26c5deaabedf39f87b866f6908115a5aaf1db.tar.xz mullvadvpn-87f26c5deaabedf39f87b866f6908115a5aaf1db.zip | |
Align status indicator center around tick image view
| -rw-r--r-- | ios/MullvadVPN/SelectLocationCell.swift | 10 |
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), |
