diff --git a/Vernissage/ViewModifiers/NavigationMenuButtons.swift b/Vernissage/ViewModifiers/NavigationMenuButtons.swift index ff0a1f1..841f57e 100644 --- a/Vernissage/ViewModifiers/NavigationMenuButtons.swift +++ b/Vernissage/ViewModifiers/NavigationMenuButtons.swift @@ -200,6 +200,7 @@ private struct NavigationMenuButtons: ViewModifier { } self.hiddenMenuItems = self.displayedCustomMenuItems.map({ $0.viewMode }) + MenuCustomizableTip().invalidate(reason: .actionPerformed) } label: { Label { Text(item.title, comment: "Menu item") diff --git a/Vernissage/Views/SettingsView/Subviews/GeneralSectionView.swift b/Vernissage/Views/SettingsView/Subviews/GeneralSectionView.swift index c598be8..dfe928f 100644 --- a/Vernissage/Views/SettingsView/Subviews/GeneralSectionView.swift +++ b/Vernissage/Views/SettingsView/Subviews/GeneralSectionView.swift @@ -5,7 +5,9 @@ // import SwiftUI +import TipKit import EnvironmentKit +import WidgetsKit struct GeneralSectionView: View { @Environment(ApplicationState.self) var applicationState @@ -87,6 +89,7 @@ struct GeneralSectionView: View { Text("settings.title.menuPosition", comment: "Menu position") } .onChange(of: self.applicationState.menuPosition) { oldMenuPosition, newMenuPosition in + MainNavigationTip().invalidate(reason: .actionPerformed) ApplicationSettingsHandler.shared.set(menuPosition: newMenuPosition, modelContext: modelContext) } }