From fd69846774ee2b5328f5320e4fce2888a1cc33f9 Mon Sep 17 00:00:00 2001 From: Kyle Hickinson Date: Wed, 20 Sep 2023 15:33:33 -0400 Subject: [PATCH] Fix reader mode icon not updating between private mode/regular mode --- .../Browser/Toolbars/UrlBar/ReaderModeButton.swift | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Sources/Brave/Frontend/Browser/Toolbars/UrlBar/ReaderModeButton.swift b/Sources/Brave/Frontend/Browser/Toolbars/UrlBar/ReaderModeButton.swift index 2571efb667f..720b095437c 100644 --- a/Sources/Brave/Frontend/Browser/Toolbars/UrlBar/ReaderModeButton.swift +++ b/Sources/Brave/Frontend/Browser/Toolbars/UrlBar/ReaderModeButton.swift @@ -6,8 +6,16 @@ import UIKit import DesignSystem class ReaderModeButton: UIButton { - var selectedTintColor: UIColor? - var unselectedTintColor: UIColor? + var selectedTintColor: UIColor? { + didSet { + updateAppearance() + } + } + var unselectedTintColor: UIColor? { + didSet { + updateAppearance() + } + } override init(frame: CGRect) { super.init(frame: frame)