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)