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
@@ -25,12 +25,12 @@ struct UserSessionOverview: View {
ScrollView {
UserSessionCardView(viewData: viewModel.viewState.cardViewData,
onVerifyAction: { _ in
viewModel.send(viewAction: .verifyCurrentSession)
},
viewModel.send(viewAction: .verifyCurrentSession)
},
onViewDetailsAction: { _ in
viewModel.send(viewAction: .viewSessionDetails)
})
.padding(16)
viewModel.send(viewAction: .viewSessionDetails)
})
.padding(16)
SwiftUI.Section {
UserSessionOverviewDisclosureCell(title: VectorL10n.userSessionOverviewSessionDetailsButtonTitle, onBackgroundTap: {
viewModel.send(viewAction: .viewSessionDetails)
@@ -40,8 +40,8 @@ struct UserSessionOverview: View {
.background(theme.colors.system.ignoresSafeArea())
.frame(maxHeight: .infinity)
.navigationTitle(viewModel.viewState.isCurrentSession ?
VectorL10n.userSessionOverviewCurrentSessionTitle :
VectorL10n.userSessionOverviewSessionTitle)
VectorL10n.userSessionOverviewCurrentSessionTitle :
VectorL10n.userSessionOverviewSessionTitle)
}
}
@@ -20,13 +20,13 @@ struct UserSessionOverviewDisclosureCell: View {
@Environment(\.theme) private var theme: ThemeSwiftUI
let title: String
var onBackgroundTap: (() -> (Void))? = nil
var onBackgroundTap: (() -> Void)?
var body: some View {
Button(action: { onBackgroundTap?()}) {
Button(action: { onBackgroundTap?() }) {
VStack(spacing: 0) {
SeparatorLine()
HStack() {
HStack {
Text(title)
.font(theme.fonts.body)
.foregroundColor(theme.colors.primaryContent)