mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Fix SwiftFormat errors
This commit is contained in:
@@ -55,7 +55,7 @@ final class LoginCoordinator: Coordinator, Presentable {
|
|||||||
|
|
||||||
// Must be used only internally
|
// Must be used only internally
|
||||||
var childCoordinators: [Coordinator] = []
|
var childCoordinators: [Coordinator] = []
|
||||||
var callback: (@MainActor(LoginCoordinatorAction) -> Void)?
|
var callback: (@MainActor (LoginCoordinatorAction) -> Void)?
|
||||||
|
|
||||||
// MARK: - Setup
|
// MARK: - Setup
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ class LoginViewModel: LoginViewModelType, LoginViewModelProtocol {
|
|||||||
|
|
||||||
// MARK: Public
|
// MARK: Public
|
||||||
|
|
||||||
var callback: (@MainActor(LoginViewModelAction) -> Void)?
|
var callback: (@MainActor (LoginViewModelAction) -> Void)?
|
||||||
|
|
||||||
// MARK: - Setup
|
// MARK: - Setup
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ import Foundation
|
|||||||
|
|
||||||
@MainActor
|
@MainActor
|
||||||
protocol LoginViewModelProtocol {
|
protocol LoginViewModelProtocol {
|
||||||
var callback: (@MainActor(LoginViewModelAction) -> Void)? { get set }
|
var callback: (@MainActor (LoginViewModelAction) -> Void)? { get set }
|
||||||
var context: LoginViewModelType.Context { get }
|
var context: LoginViewModelType.Context { get }
|
||||||
|
|
||||||
/// Update the view to reflect that a new homeserver is being loaded.
|
/// Update the view to reflect that a new homeserver is being loaded.
|
||||||
|
|||||||
+1
-1
@@ -45,7 +45,7 @@ final class ServerSelectionCoordinator: Coordinator, Presentable {
|
|||||||
|
|
||||||
// Must be used only internally
|
// Must be used only internally
|
||||||
var childCoordinators: [Coordinator] = []
|
var childCoordinators: [Coordinator] = []
|
||||||
var callback: (@MainActor(ServerSelectionCoordinatorAction) -> Void)?
|
var callback: (@MainActor (ServerSelectionCoordinatorAction) -> Void)?
|
||||||
|
|
||||||
// MARK: - Setup
|
// MARK: - Setup
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -25,7 +25,7 @@ class ServerSelectionViewModel: ServerSelectionViewModelType, ServerSelectionVie
|
|||||||
|
|
||||||
// MARK: Public
|
// MARK: Public
|
||||||
|
|
||||||
var callback: (@MainActor(ServerSelectionViewModelAction) -> Void)?
|
var callback: (@MainActor (ServerSelectionViewModelAction) -> Void)?
|
||||||
|
|
||||||
// MARK: - Setup
|
// MARK: - Setup
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -18,7 +18,7 @@ import Foundation
|
|||||||
|
|
||||||
@MainActor
|
@MainActor
|
||||||
protocol ServerSelectionViewModelProtocol {
|
protocol ServerSelectionViewModelProtocol {
|
||||||
var callback: (@MainActor(ServerSelectionViewModelAction) -> Void)? { get set }
|
var callback: (@MainActor (ServerSelectionViewModelAction) -> Void)? { get set }
|
||||||
var context: ServerSelectionViewModelType.Context { get }
|
var context: ServerSelectionViewModelType.Context { get }
|
||||||
|
|
||||||
/// Displays an error to the user.
|
/// Displays an error to the user.
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ struct RoomScreenViewState: BindableState {
|
|||||||
var isBackPaginating = false
|
var isBackPaginating = false
|
||||||
var bindings: RoomScreenViewStateBindings
|
var bindings: RoomScreenViewStateBindings
|
||||||
|
|
||||||
var contextMenuBuilder: (@MainActor(_ itemId: String) -> TimelineItemContextMenu)?
|
var contextMenuBuilder: (@MainActor (_ itemId: String) -> TimelineItemContextMenu)?
|
||||||
|
|
||||||
var sendButtonDisabled: Bool {
|
var sendButtonDisabled: Bool {
|
||||||
bindings.composerText.count == 0
|
bindings.composerText.count == 0
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ enum ScreenshotDetectorError: String, Error {
|
|||||||
|
|
||||||
@MainActor
|
@MainActor
|
||||||
class ScreenshotDetector {
|
class ScreenshotDetector {
|
||||||
var callback: (@MainActor(UIImage?, Error?) -> Void)?
|
var callback: (@MainActor (UIImage?, Error?) -> Void)?
|
||||||
|
|
||||||
/// Flag to whether ask for photos authorization by default if needed.
|
/// Flag to whether ask for photos authorization by default if needed.
|
||||||
var autoRequestPHAuthorization = true
|
var autoRequestPHAuthorization = true
|
||||||
|
|||||||
Reference in New Issue
Block a user