Run SwiftFormat.

This commit is contained in:
Doug
2026-05-27 14:38:50 +01:00
committed by Doug
parent 5138e05e47
commit fa67713726
573 changed files with 2426 additions and 2426 deletions
@@ -44,7 +44,7 @@ final class SecureBackupKeyBackupScreenCoordinator: CoordinatorProtocol {
}
.store(in: &cancellables)
}
func toPresentable() -> AnyView {
AnyView(SecureBackupKeyBackupScreen(context: viewModel.context))
}
@@ -19,7 +19,7 @@ class SecureBackupKeyBackupScreenViewModel: SecureBackupKeyBackupScreenViewModel
var actions: AnyPublisher<SecureBackupKeyBackupScreenViewModelAction, Never> {
actionsSubject.eraseToAnyPublisher()
}
init(secureBackupController: SecureBackupControllerProtocol, userIndicatorController: UserIndicatorControllerProtocol?) {
self.secureBackupController = secureBackupController
self.userIndicatorController = userIndicatorController
@@ -63,7 +63,7 @@ class SecureBackupKeyBackupScreenViewModel: SecureBackupKeyBackupScreenViewModel
}
// MARK: - Private
private func disableBackup() {
Task {
switch await secureBackupController.disable() {
@@ -39,7 +39,7 @@ struct SecureBackupKeyBackupScreen: View {
disableBackupSection
}
}
private var disableBackupSection: some View {
VStack(spacing: 24) {
VStack(spacing: 16) {
@@ -51,7 +51,7 @@ final class SecureBackupLogoutConfirmationScreenCoordinator: CoordinatorProtocol
}
.store(in: &cancellables)
}
func toPresentable() -> AnyView {
AnyView(SecureBackupLogoutConfirmationScreen(context: viewModel.context))
}
@@ -27,7 +27,7 @@ class SecureBackupLogoutConfirmationScreenViewModel: SecureBackupLogoutConfirmat
var actions: AnyPublisher<SecureBackupLogoutConfirmationScreenViewModelAction, Never> {
actionsSubject.eraseToAnyPublisher()
}
init(secureBackupController: SecureBackupControllerProtocol, homeserverReachabilityPublisher: CurrentValuePublisher<NetworkMonitorReachability, Never>) {
self.secureBackupController = secureBackupController
self.homeserverReachabilityPublisher = homeserverReachabilityPublisher
@@ -28,7 +28,7 @@ struct SecureBackupLogoutConfirmationScreen: View {
.backgroundStyle(.compound.bgCanvasDefault)
.alert(item: $context.alertInfo)
}
@ViewBuilder
private var content: some View {
Text(title)
@@ -19,7 +19,7 @@ class SecureBackupRecoveryKeyScreenViewModel: SecureBackupRecoveryKeyScreenViewM
var actions: AnyPublisher<SecureBackupRecoveryKeyScreenViewModelAction, Never> {
actionsSubject.eraseToAnyPublisher()
}
init(secureBackupController: SecureBackupControllerProtocol,
userIndicatorController: UserIndicatorControllerProtocol,
isModallyPresented: Bool) {
@@ -19,7 +19,7 @@ class SecureBackupScreenViewModel: SecureBackupScreenViewModelType, SecureBackup
var actions: AnyPublisher<SecureBackupScreenViewModelAction, Never> {
actionsSubject.eraseToAnyPublisher()
}
init(secureBackupController: SecureBackupControllerProtocol,
userIndicatorController: UserIndicatorControllerProtocol,
chatBackupDetailsURL: URL) {