From c1461efe4ce1626b3a62e3e4c0adfd1bd518573a Mon Sep 17 00:00:00 2001 From: Daniel Bernal Date: Fri, 3 May 2024 15:56:17 +0200 Subject: [PATCH] Settings: onAppear changed to onDisappear (#2817) (#2820) Task/Issue URL: https://app.asana.com/0/414709148257752/1207214261396124/f CC: @samsymons @tomasstrba Description: Settings event triggers fixed - Already approved and merged to main --- DuckDuckGo/SettingsRootView.swift | 2 +- DuckDuckGo/SettingsView.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DuckDuckGo/SettingsRootView.swift b/DuckDuckGo/SettingsRootView.swift index 2c4cd10de4..d6b6c3aff5 100644 --- a/DuckDuckGo/SettingsRootView.swift +++ b/DuckDuckGo/SettingsRootView.swift @@ -66,7 +66,7 @@ struct SettingsRootView: View { viewModel.onAppear() } - .onAppear { + .onDisappear { viewModel.onDissapear() } diff --git a/DuckDuckGo/SettingsView.swift b/DuckDuckGo/SettingsView.swift index ab326856a9..3e7839e23a 100644 --- a/DuckDuckGo/SettingsView.swift +++ b/DuckDuckGo/SettingsView.swift @@ -71,7 +71,7 @@ struct SettingsView: View { viewModel.onAppear() } - .onAppear { + .onDisappear { viewModel.onDissapear() }