mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-25 19:10:49 +02:00
Configured and applied SwiftFormat
This commit is contained in:
committed by
Stefan Ceriu
parent
ff2e6ddfa7
commit
43c28d23b7
+2
-4
@@ -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)
|
||||
|
||||
+3
-4
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user