From eb8afdaab8f76950405ff6682e7088fcfaac5d7d Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sun, 17 Nov 2019 15:28:58 -0500 Subject: [PATCH] Change how pin icon is displayed on statuses --- Tusker/Views/Status/StatusTableViewCell.swift | 5 +++-- Tusker/Views/Status/StatusTableViewCell.xib | 22 +++++-------------- 2 files changed, 9 insertions(+), 18 deletions(-) diff --git a/Tusker/Views/Status/StatusTableViewCell.swift b/Tusker/Views/Status/StatusTableViewCell.swift index a62f5372..b92b801a 100644 --- a/Tusker/Views/Status/StatusTableViewCell.swift +++ b/Tusker/Views/Status/StatusTableViewCell.swift @@ -42,7 +42,7 @@ class StatusTableViewCell: UITableViewCell { @IBOutlet weak var favoriteButton: UIButton! @IBOutlet weak var reblogButton: UIButton! @IBOutlet weak var moreButton: UIButton! - @IBOutlet weak var pinnedStackView: UIStackView! + @IBOutlet weak var pinImageView: UIImageView! var statusID: String! var accountID: String! @@ -154,7 +154,8 @@ class StatusTableViewCell: UITableViewCell { contentWarningLabel.isHidden = status.spoilerText.isEmpty let pinned = status.pinned ?? false - pinnedStackView.isHidden = !(pinned && showPinned) + pinImageView.isHidden = !(pinned && showPinned) + timestampLabel.isHidden = !pinImageView.isHidden } private func updateStatusState(status: Status) { diff --git a/Tusker/Views/Status/StatusTableViewCell.xib b/Tusker/Views/Status/StatusTableViewCell.xib index 032880d7..bc5e81cd 100644 --- a/Tusker/Views/Status/StatusTableViewCell.xib +++ b/Tusker/Views/Status/StatusTableViewCell.xib @@ -16,21 +16,6 @@ - +