From ea55759a956472e72037531dabfab8cbf71ef8e9 Mon Sep 17 00:00:00 2001 From: Brad Howes Date: Wed, 7 Jan 2026 22:16:12 +0100 Subject: [PATCH] Allow observation of attribute I would like to clear some app state when the current HUD display goes away. If this attribute is visible then I can use it in an `onChange` view modifier. --- SwiftUI/Sources/ProgressHUD.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SwiftUI/Sources/ProgressHUD.swift b/SwiftUI/Sources/ProgressHUD.swift index c6c4444..f753a8a 100644 --- a/SwiftUI/Sources/ProgressHUD.swift +++ b/SwiftUI/Sources/ProgressHUD.swift @@ -27,7 +27,7 @@ public class ProgressHUD { // MARK: - Properties public static let shared = ProgressHUD() - var isVisible = false + public internal(set) var isVisible = false var text: String? var displayMode = DisplayMode.animation