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 a13cdfc commit 7f49582Copy full SHA for 7f49582
WooCommerce/Classes/View Modifiers/View+NoticesModifier.swift
@@ -21,6 +21,12 @@ struct NoticeModifier: ViewModifier {
21
// NoticeView wrapper
22
NoticeAlert(notice: notice, width: geometry.size.width)
23
.fixedSize(horizontal: false, vertical: true)
24
+ .onAppear {
25
+ // TODO: Move this to a proper state management class
26
+ DispatchQueue.main.asyncAfter(deadline: .now() + 5) {
27
+ $notice.wrappedValue = nil
28
+ }
29
30
.onTapGesture {
31
$notice.wrappedValue = nil // TODO: Test the retry button interference
32
}
0 commit comments