Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Mizar/   (Mizar Prover Version 8.1.15©)  Datei vom 6.10.2026 mit Größe 2 MB image not shown  

Impressum ProgressHUD.swift   Sprache: JAVA

 

import MBProgressHUD

struct ProgressHUD {
    typealias Action = () -> Void
    
    private(set) var hide: Action?
    private(set) var show: Action?
    
    private init() { }
    
    static func make(label: String?) -> ProgressHUD {
        make(
            label: label,
            on: MainActor.assumeIsolated {
                SharedAppProvider.currentTopViewController
            }
        )
    }
    
    static func make(label: String?, on viewController: UIViewController?) -> ProgressHUD {
        ProgressHUD().then {
            guard let viewController, let view = viewController.view else {
                return
            }
            
            $0.hide = {
                _ = MBProgressHUD.hide(for: view, animated: true)
            }
            
            $0.show = {
                _ = MBProgressHUD.showAdded(to: view, animated: true).then {
                    $0.label.text = label
                }
            }
        }
    }
}

// MARK: - Then

extension ProgressHUD: Then { }

Messung
CHZG
849410092

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*Bot Zugriff