diff --git a/Tusker/Views/Profile Header/ProfileHeaderTableViewCell.swift b/Tusker/Views/Profile Header/ProfileHeaderTableViewCell.swift index bd4e5af3..f7f0cde9 100644 --- a/Tusker/Views/Profile Header/ProfileHeaderTableViewCell.swift +++ b/Tusker/Views/Profile Header/ProfileHeaderTableViewCell.swift @@ -28,7 +28,7 @@ class ProfileHeaderTableViewCell: UITableViewCell { @IBOutlet weak var noteTextView: StatusContentTextView! @IBOutlet weak var fieldsStackView: UIStackView! @IBOutlet weak var fieldNamesStackView: UIStackView! - @IBOutlet weak var fieldValuesStack: UIStackView! + @IBOutlet weak var fieldValuesStackView: UIStackView! @IBOutlet weak var moreButtonVisualEffectView: UIVisualEffectView! var accountID: String! @@ -102,7 +102,8 @@ class ProfileHeaderTableViewCell: UITableViewCell { fieldsStackView.isHidden = account.fields.isEmpty - fieldsStackView.arrangedSubviews.forEach { $0.removeFromSuperview() } + fieldNamesStackView.arrangedSubviews.forEach { $0.removeFromSuperview() } + fieldValuesStackView.arrangedSubviews.forEach { $0.removeFromSuperview() } for field in account.fields { let nameLabel = UILabel() nameLabel.text = field.name @@ -119,7 +120,7 @@ class ProfileHeaderTableViewCell: UITableViewCell { valueTextView.textAlignment = .left valueTextView.awakeFromNib() valueTextView.navigationDelegate = delegate - fieldValuesStack.addArrangedSubview(valueTextView) + fieldValuesStackView.addArrangedSubview(valueTextView) } if accountUpdater == nil { diff --git a/Tusker/Views/Profile Header/ProfileHeaderTableViewCell.xib b/Tusker/Views/Profile Header/ProfileHeaderTableViewCell.xib index 516d540f..4982581b 100644 --- a/Tusker/Views/Profile Header/ProfileHeaderTableViewCell.xib +++ b/Tusker/Views/Profile Header/ProfileHeaderTableViewCell.xib @@ -1,8 +1,7 @@ - - + - + @@ -161,7 +160,7 @@ - +