From 08c63a2f840d2953eacf6dd7e9026d1a8cc11c19 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Mon, 28 Nov 2022 21:53:27 -0500 Subject: [PATCH] Add indicator for locked profiles --- .../Profile Header/ProfileHeaderView.swift | 2 ++ .../Profile Header/ProfileHeaderView.xib | 34 +++++++++++++------ 2 files changed, 25 insertions(+), 11 deletions(-) diff --git a/Tusker/Views/Profile Header/ProfileHeaderView.swift b/Tusker/Views/Profile Header/ProfileHeaderView.swift index d80d442e..9f1e1097 100644 --- a/Tusker/Views/Profile Header/ProfileHeaderView.swift +++ b/Tusker/Views/Profile Header/ProfileHeaderView.swift @@ -34,6 +34,7 @@ class ProfileHeaderView: UIView { @IBOutlet weak var moreButton: VisualEffectImageButton! @IBOutlet weak var displayNameLabel: EmojiLabel! @IBOutlet weak var usernameLabel: UILabel! + @IBOutlet weak var lockImageView: UIImageView! @IBOutlet weak var followsYouLabel: UILabel! @IBOutlet weak var noteTextView: StatusContentTextView! @IBOutlet weak var fieldsView: ProfileFieldsView! @@ -117,6 +118,7 @@ class ProfileHeaderView: UIView { updateUIForPreferences() usernameLabel.text = "@\(account.acct)" + lockImageView.isHidden = !account.locked updateImages(account: account) diff --git a/Tusker/Views/Profile Header/ProfileHeaderView.xib b/Tusker/Views/Profile Header/ProfileHeaderView.xib index 3a470f87..b5648f39 100644 --- a/Tusker/Views/Profile Header/ProfileHeaderView.xib +++ b/Tusker/Views/Profile Header/ProfileHeaderView.xib @@ -40,7 +40,7 @@