@@ -38,6 +38,7 @@ class ReaderTabViewController: UIViewController {
38
38
39
39
NotificationCenter . default. addObserver ( self , selector: #selector( defaultAccountDidChange ( _: ) ) , name: NSNotification . Name. WPAccountDefaultWordPressComAccountChanged, object: nil )
40
40
NotificationCenter . default. addObserver ( self , selector: #selector( willEnterForeground) , name: UIApplication . willEnterForegroundNotification, object: nil )
41
+ startObservingQuickStart ( )
41
42
42
43
viewModel. fetchReaderMenu ( )
43
44
}
@@ -123,7 +124,6 @@ class ReaderTabViewController: UIViewController {
123
124
// MARK: - Navigation Buttons
124
125
extension ReaderTabViewController {
125
126
@objc private func didTapSettingsButton( ) {
126
- settingsButton. shouldShowSpotlight = false
127
127
viewModel. presentManage ( from: self )
128
128
}
129
129
@@ -132,6 +132,18 @@ extension ReaderTabViewController {
132
132
}
133
133
}
134
134
135
+ // MARK: Observing Quick Start
136
+ extension ReaderTabViewController {
137
+ private func startObservingQuickStart( ) {
138
+ NotificationCenter . default. addObserver ( forName: . QuickStartTourElementChangedNotification, object: nil , queue: nil ) { [ weak self] notification in
139
+ if let info = notification. userInfo,
140
+ let element = info [ QuickStartTourGuide . notificationElementKey] as? QuickStartTourElement {
141
+ self ? . settingsButton. shouldShowSpotlight = element == . readerDiscoverSettings
142
+ }
143
+ }
144
+ }
145
+ }
146
+
135
147
136
148
// MARK: - State Restoration
137
149
extension ReaderTabViewController : UIViewControllerRestoration {
0 commit comments