aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2020-12-23 16:03:41 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2020-12-23 16:14:03 +0100
commite724c043d93bff7622cccf1fedf4a2d83627ee6f (patch)
treef343f0bbb407646d5dd03c039f9c1dcbe8d8e224
parentUI: iOS: Fix placeholder label alignment in text fields. (diff)
downloadwireguard-apple-e724c043d93bff7622cccf1fedf4a2d83627ee6f.tar.xz
wireguard-apple-e724c043d93bff7622cccf1fedf4a2d83627ee6f.zip
UI: iOS: Remove duplicate call to addSubview
Signed-off-by: Andrej Mihajlov <and@mullvad.net>
-rw-r--r--Sources/WireGuardApp/UI/iOS/View/KeyValueCell.swift2
1 files changed, 0 insertions, 2 deletions
diff --git a/Sources/WireGuardApp/UI/iOS/View/KeyValueCell.swift b/Sources/WireGuardApp/UI/iOS/View/KeyValueCell.swift
index 70b97c8..a2c60f1 100644
--- a/Sources/WireGuardApp/UI/iOS/View/KeyValueCell.swift
+++ b/Sources/WireGuardApp/UI/iOS/View/KeyValueCell.swift
@@ -116,8 +116,6 @@ class KeyValueCell: UITableViewCell {
expandToFitValueLabelConstraint.isActive = true
contentView.addSubview(valueLabelScrollView)
-
- contentView.addSubview(valueLabelScrollView)
valueLabelScrollView.translatesAutoresizingMaskIntoConstraints = false
NSLayoutConstraint.activate([
valueLabelScrollView.trailingAnchor.constraint(equalTo: contentView.layoutMarginsGuide.trailingAnchor),