We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 15d5bb9 + c437f1d commit 4321b05Copy full SHA for 4321b05
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