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

Quelle  AppContainer.swift   Sprache: JAVA

 

import Combine
import SwiftUI
import ThreemaFramework

@available(*, deprecated, message: "Do not use anymore.")
@dynamicMemberLookup
struct AppContainer: EnvironmentKey {
    
    let appEnvironment: AppEnvironment
 
    static var defaultValue: Self { self.default }
    
    private static let `default` =
        Self(appEnvironment: AppEnvironment(businessInjector: BusinessInjector(forBackgroundProcess: false)))
    
    subscript<T>(dynamicMember keyPath: KeyPath<AppEnvironment, T>) -> T {
        appEnvironment[keyPath: keyPath]
    }
    
    subscript<T>(dynamicMember keyPath: KeyPath<BusinessInjectorProtocol, T>) -> T {
        appEnvironment.businessInjector[keyPath: keyPath]
    }
}

extension EnvironmentValues {
    @available(*, deprecated, message: "Do not use anymore.")
    var appContainer: AppContainer {
        get { self[AppContainer.self] }
        set { self[AppContainer.self] = newValue }
    }
}

extension View {
    @available(*, deprecated, message: "Do not use anymore.")
    func inject(_ container: AppContainer) -> some View {
        environment(\.appContainer, container)
    }
}

Messung
CHZG
849510093

¤ Dauer der Verarbeitung: 0.2 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.