]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
UI: iOS: Remove duplicate call to addSubview
authorAndrej Mihajlov <and@mullvad.net>
Wed, 23 Dec 2020 15:03:41 +0000 (16:03 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Wed, 23 Dec 2020 15:14:03 +0000 (16:14 +0100)
Signed-off-by: Andrej Mihajlov <and@mullvad.net>
Sources/WireGuardApp/UI/iOS/View/KeyValueCell.swift

index 70b97c8a8e3dbb16fbf3228da1119517abcf51f3..a2c60f1f7f401c204b49eed181741403b7423d88 100644 (file)
@@ -115,8 +115,6 @@ class KeyValueCell: UITableViewCell {
         expandToFitValueLabelConstraint.priority = .defaultLow + 1
         expandToFitValueLabelConstraint.isActive = true
 
-        contentView.addSubview(valueLabelScrollView)
-
         contentView.addSubview(valueLabelScrollView)
         valueLabelScrollView.translatesAutoresizingMaskIntoConstraints = false
         NSLayoutConstraint.activate([