diff --git a/Kabinett/Presentation/Commons/CustomTabViewModel/CustomTabViewModel.swift b/Kabinett/Presentation/Commons/CustomTabViewModel/CustomTabViewModel.swift index acb033f..1dbcd28 100644 --- a/Kabinett/Presentation/Commons/CustomTabViewModel/CustomTabViewModel.swift +++ b/Kabinett/Presentation/Commons/CustomTabViewModel/CustomTabViewModel.swift @@ -20,7 +20,7 @@ final class CustomTabViewModel: ObservableObject { @Published var isLetterWrite: Bool = false @Published var previousTab: Int? - static let resetProfileNavigationNotification = Notification.Name("resetProfileNavigation") + static let profileTabTappedNotification = Notification.Name("profileTabTappedNotification") private var lastTabSelectionTime: Date? private let doubleTapInterval: TimeInterval = 0.2 diff --git a/Kabinett/Presentation/View/Profile/ProfileView.swift b/Kabinett/Presentation/View/Profile/ProfileView.swift index 3f6e28e..2eb820a 100644 --- a/Kabinett/Presentation/View/Profile/ProfileView.swift +++ b/Kabinett/Presentation/View/Profile/ProfileView.swift @@ -98,7 +98,7 @@ struct ProfileView: View { SettingsView(viewModel: viewModel) } } - .onReceive(NotificationCenter.default.publisher(for: CustomTabViewModel.resetProfileNavigationNotification)) { _ in + .onReceive(NotificationCenter.default.publisher(for: CustomTabViewModel.profileTabTappedNotification)) { _ in viewModel.showSettingsView = false } }