We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 146ddb6 commit 82bb92aCopy full SHA for 82bb92a
Shared/Supporting Files/Views/FavoritesView.swift
@@ -15,6 +15,9 @@
15
import SwiftUI
16
17
struct FavoritesView: View {
18
+ /// The editing mode of the environment.
19
+ @Environment(\.editMode) private var editMode
20
+
21
/// A Boolean value indicating whether the add favorite sheet is showing.
22
@State private var addFavoriteSheetIsShowing = false
23
@@ -54,6 +57,9 @@ struct FavoritesView: View {
54
57
}
55
58
56
59
60
+ .onDisappear {
61
+ editMode?.wrappedValue = .inactive
62
+ }
63
64
65
0 commit comments