Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Threema/Threema/SharedUI/Utilities/   (Social Medium ©)  Datei vom 26.9.2026 mit Größe 1023 B image not shown  

Quelle  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
859910094

¤ Dauer der Verarbeitung: 0.0 Sekunden  (vorverarbeitet am  2026-11-04) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover


Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.