mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-23 01:52:44 +02:00
Configured and applied SwiftFormat
This commit is contained in:
committed by
Stefan Ceriu
parent
ff2e6ddfa7
commit
43c28d23b7
+5
-10
@@ -16,16 +16,13 @@
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
import Combine
|
||||
|
||||
|
||||
import SwiftUI
|
||||
|
||||
typealias SpaceCreationRoomsViewModelType = StateStoreViewModel<SpaceCreationRoomsViewState,
|
||||
SpaceCreationRoomsStateAction,
|
||||
SpaceCreationRoomsViewAction>
|
||||
SpaceCreationRoomsStateAction,
|
||||
SpaceCreationRoomsViewAction>
|
||||
class SpaceCreationRoomsViewModel: SpaceCreationRoomsViewModelType, SpaceCreationRoomsViewModelProtocol {
|
||||
|
||||
// MARK: - Setup
|
||||
|
||||
// MARK: Private
|
||||
@@ -51,7 +48,6 @@ class SpaceCreationRoomsViewModel: SpaceCreationRoomsViewModelType, SpaceCreatio
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
// MARK: - Public
|
||||
|
||||
override func process(viewAction: SpaceCreationRoomsViewAction) {
|
||||
@@ -65,13 +61,12 @@ class SpaceCreationRoomsViewModel: SpaceCreationRoomsViewModelType, SpaceCreatio
|
||||
}
|
||||
}
|
||||
|
||||
override class func reducer(state: inout SpaceCreationRoomsViewState, action: SpaceCreationRoomsStateAction) {
|
||||
}
|
||||
override class func reducer(state: inout SpaceCreationRoomsViewState, action: SpaceCreationRoomsStateAction) { }
|
||||
|
||||
// MARK: - Private
|
||||
|
||||
private func done() {
|
||||
self.creationParameters.newRooms = self.context.rooms
|
||||
creationParameters.newRooms = context.rooms
|
||||
callback?(.done)
|
||||
}
|
||||
|
||||
|
||||
+1
-2
@@ -1,6 +1,6 @@
|
||||
// File created from SimpleUserProfileExample
|
||||
// $ createScreen.sh Spaces/SpaceCreation/SpaceCreationRooms SpaceCreationRooms
|
||||
//
|
||||
//
|
||||
// Copyright 2021 New Vector Ltd
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -19,7 +19,6 @@
|
||||
import Foundation
|
||||
|
||||
protocol SpaceCreationRoomsViewModelProtocol {
|
||||
|
||||
var callback: ((SpaceCreationRoomsViewModelResult) -> Void)? { get set }
|
||||
var context: SpaceCreationRoomsViewModelType.Context { get }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user