diff --git a/Mastodon/Scene/MainTab/MainTabBarController+Wizard.swift b/Mastodon/Scene/MainTab/MainTabBarController+Wizard.swift index 803cc6d3f..0f143a98e 100644 --- a/Mastodon/Scene/MainTab/MainTabBarController+Wizard.swift +++ b/Mastodon/Scene/MainTab/MainTabBarController+Wizard.swift @@ -56,6 +56,13 @@ extension MainTabBarController.Wizard { return "Switch between multiple accounts by holding the profile button." } } + + func markAsRead() { + switch self { + case .multipleAccountSwitch: + UserDefaults.shared.didShowMultipleAccountSwitchWizard = true + } + } } } @@ -89,8 +96,12 @@ extension MainTabBarController.Wizard { return } + // prepare for reuse prepareForReuse() + // set wizard item read + item.markAsRead() + // add spotlight let spotlight = delegate.spotlight(item: item) let maskLayer = CAShapeLayer() @@ -118,7 +129,6 @@ extension MainTabBarController.Wizard { @objc private func backgroundTapGestureRecognizerHandler(_ sender: UITapGestureRecognizer) { logger.log(level: .debug, "\((#file as NSString).lastPathComponent, privacy: .public)[\(#line, privacy: .public)], \(#function, privacy: .public)") - // TODO: toggle current item preference flag consume() } }