1 parent 3e4748d commit 91f4723Copy full SHA for 91f4723
1 file changed
Application/Presentation/NotificationTab/Sources/PushNotification/View+Refreshable.swift
@@ -21,10 +21,10 @@ extension View {
21
@ViewBuilder
22
func refreshable(
23
isEnabled: Bool,
24
- action: @escaping @Sendable () async -> Void
+ action: @escaping @MainActor @Sendable () async -> Void
25
) -> some View {
26
if isEnabled {
27
- refreshable(action: action)
+ refreshable { await action() }
28
} else {
29
self
30
}
0 commit comments