Configured and applied SwiftFormat

This commit is contained in:
Stefan Ceriu
2022-09-27 10:17:22 +03:00
committed by Stefan Ceriu
parent ff2e6ddfa7
commit 43c28d23b7
663 changed files with 2329 additions and 2840 deletions
@@ -1,4 +1,4 @@
//
//
// Copyright 2021 New Vector Ltd
//
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -17,7 +17,6 @@
import SwiftUI
struct TemplateRoomList: View {
// MARK: - Properties
// MARK: Private
@@ -47,7 +46,7 @@ struct TemplateRoomList: View {
.foregroundColor(theme.colors.primaryContent)
.accessibility(identifier: "errorMessage")
} else {
ScrollView{
ScrollView {
LazyVStack(spacing: 0) {
ForEach(viewModel.viewState.rooms) { room in
Button {
@@ -66,7 +65,6 @@ struct TemplateRoomList: View {
// MARK: - Previews
struct TemplateRoomList_Previews: PreviewProvider {
static let stateRenderer = MockTemplateRoomListScreenState.stateRenderer
static var previews: some View {
stateRenderer.screenGroup(addNavigation: true)
@@ -17,7 +17,6 @@
import SwiftUI
struct TemplateRoomListRow: View {
// MARK: - Properties
// MARK: Private
@@ -30,14 +29,14 @@ struct TemplateRoomListRow: View {
let displayName: String?
var body: some View {
HStack{
HStack {
AvatarImage(avatarData: avatar, size: .medium)
Text(displayName ?? "")
.foregroundColor(theme.colors.primaryContent)
.accessibility(identifier: "roomNameText")
.accessibility(identifier: "roomNameText")
Spacer()
}
//add to a style
// add to a style
.padding(.horizontal)
.padding(.vertical, 8)
.frame(maxWidth: .infinity)