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.
1 parent 237510f commit 0b96d7dCopy full SHA for 0b96d7d
Shared/Supporting Files/Extensions/View+OnTeardown.swift
@@ -44,14 +44,14 @@ extension View {
44
}
45
46
47
-/// A type of action to perform.
48
-private enum Action {
49
- case action(() -> Void)
50
- case actionAsync(() async -> Void)
51
-}
52
-
53
/// A view modifier that runs a teardown action when the view disappears.
54
private struct OnTeardown: ViewModifier {
+ /// A type of action to perform.
+ enum Action {
+ case action(() -> Void)
+ case actionAsync(() async -> Void)
+ }
+
55
/// The teardown action to perform.
56
let action: Action
57
0 commit comments