From ffcbea477dbcd519caca6f8d94bbd725882f1084 Mon Sep 17 00:00:00 2001 From: PruthiviRaj27 Date: Fri, 30 May 2025 14:14:17 +0530 Subject: [PATCH] fix --- ios-app/UI/ProfileViewController.swift | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ios-app/UI/ProfileViewController.swift b/ios-app/UI/ProfileViewController.swift index b3c6a00a..e90da172 100644 --- a/ios-app/UI/ProfileViewController.swift +++ b/ios-app/UI/ProfileViewController.swift @@ -62,6 +62,7 @@ class ProfileViewController: UIViewController { deleteAccountButton.isHidden = true showDeleteAccountButtonIfSignupAllowed() + showOrHideBookmark() self.setStatusBarColor() } @@ -83,6 +84,15 @@ class ProfileViewController: UIViewController { } } + func showOrHideBookmark() { + InstituteRepository.shared.getSettings { [weak self] settings, error in + guard let settings = settings else { return } + DispatchQueue.main.async { + self?.bookmarkButtonLayout.isHidden = !settings.bookmarksEnabled + } + } + } + func getProfile() { loading = true activityIndicator = UIUtils.initActivityIndicator(parentView: contentStackView)