mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 09:02:44 +02:00
Configured and applied SwiftFormat
This commit is contained in:
committed by
Stefan Ceriu
parent
ff2e6ddfa7
commit
43c28d23b7
+4
-6
@@ -1,6 +1,6 @@
|
||||
// File created from SimpleUserProfileExample
|
||||
// $ createScreen.sh Spaces/SpaceCreation/SpaceCreationPostProcess SpaceCreationPostProcess
|
||||
//
|
||||
//
|
||||
// Copyright 2021 New Vector Ltd
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -19,7 +19,6 @@
|
||||
import SwiftUI
|
||||
|
||||
struct SpaceCreationPostProcess: View {
|
||||
|
||||
// MARK: - Properties
|
||||
|
||||
// MARK: Private
|
||||
@@ -44,7 +43,7 @@ struct SpaceCreationPostProcess: View {
|
||||
.navigationBarHidden(true)
|
||||
.background(theme.colors.background.ignoresSafeArea())
|
||||
.frame(maxHeight: .infinity)
|
||||
.onAppear() {
|
||||
.onAppear {
|
||||
viewModel.send(viewAction: .runTasks)
|
||||
}
|
||||
}
|
||||
@@ -62,7 +61,7 @@ struct SpaceCreationPostProcess: View {
|
||||
@ViewBuilder
|
||||
private var tasksList: some View {
|
||||
VStack(alignment: .leading, spacing: 11) {
|
||||
ForEach(viewModel.viewState.tasks.indices) { index in
|
||||
ForEach(viewModel.viewState.tasks.indices, id: \.self) { index in
|
||||
SpaceCreationPostProcessItem(title: viewModel.viewState.tasks[index].title, state: viewModel.viewState.tasks[index].state)
|
||||
}
|
||||
}
|
||||
@@ -85,7 +84,7 @@ struct SpaceCreationPostProcess: View {
|
||||
private var avatarView: some View {
|
||||
ZStack {
|
||||
SpaceAvatarImage(mxContentUri: viewModel.viewState.avatar.mxContentUri, matrixItemId: viewModel.viewState.avatar.matrixItemId, displayName: viewModel.viewState.avatar.displayName, size: .xLarge)
|
||||
.padding(6)
|
||||
.padding(6)
|
||||
if let image = viewModel.viewState.avatarImage {
|
||||
Image(uiImage: image)
|
||||
.resizable()
|
||||
@@ -95,7 +94,6 @@ struct SpaceCreationPostProcess: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// MARK: - Previews
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
//
|
||||
//
|
||||
// Copyright 2021 New Vector Ltd
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
|
||||
Reference in New Issue
Block a user