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

Quelle  ModalRouting.swift   Sprache: JAVA

 

protocol ModalRouterProtocol: AnyObject {
    var rootViewController: UIViewController { get }
    
    func present(
        _ viewController: UIViewController,
        animated: Bool,
        style: UIModalPresentationStyle,
        transition: UIModalTransitionStyle,
        completion: (() -> Void)?
    )
}

extension ModalRouterProtocol {
    func present(
        _ viewController: UIViewController,
        animated: Bool = true,
        style: UIModalPresentationStyle = .automatic,
        transition: UIModalTransitionStyle = .coverVertical,
        completion: (() -> Void)? = nil
    ) {
        let navigationController = UINavigationController(rootViewController: viewController)
        navigationController.modalPresentationStyle = style
        navigationController.modalTransitionStyle = transition
        rootViewController.present(
            navigationController,
            animated: animated,
            completion: completion
        )
    }
}

final class ModalRouter: ModalRouterProtocol {
    let rootViewController: UIViewController
    
    init(rootViewController: UIViewController) {
        self.rootViewController = rootViewController
    }
}

Messung
CHZG
869610093

¤ Dauer der Verarbeitung: 0.9 Sekunden  ¤

*© 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.