This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Cocoa | |
import ApplicationServices | |
/// Traverses the view hierarchy of all windows associated with the current application | |
/// to find if any view is an NSProgressIndicator. | |
/// | |
/// - Returns: `true` if at least one NSProgressIndicator is found, `false` otherwise. | |
@MainActor func findNativeProgressBarsInAllWindows() -> Bool { | |
// Get the shared application instance | |
let app = NSApplication.shared |