Fixed various SwiftFormat warnings

This commit is contained in:
Stefan Ceriu 2022-10-12 18:04:12 +03:00 committed by Stefan Ceriu
parent 881662b088
commit 94f5dc477b
5 changed files with 11 additions and 6 deletions

View file

@ -43,7 +43,10 @@ struct QRLoginRendezvousPayload: Codable {
var intent: Intent?
var outcome: Outcome?
// swiftformat:disable:next redundantBackticks
var protocols: [`Protocol`]?
// swiftformat:disable:next redundantBackticks
var `protocol`: `Protocol`?
var homeserver: String?
@ -84,10 +87,12 @@ struct QRLoginRendezvousPayload: Codable {
}
enum Outcome: String, Codable {
case success = "success"
case declined = "declined"
case success
case declined
case verified
}
// swiftformat:disable:next redundantBackticks
enum `Protocol`: String, Codable {
case loginToken = "login_token"
}

View file

@ -26,7 +26,7 @@ class MockQRLoginService: QRLoginServiceProtocol {
canDisplayQR: Bool = true) {
self.state = state
self.mode = mode
self.mockCanDisplayQR = canDisplayQR
mockCanDisplayQR = canDisplayQR
}
// MARK: - QRLoginServiceProtocol

View file

@ -15,8 +15,8 @@
//
import CommonKit
import SwiftUI
import MatrixSDK
import SwiftUI
struct AuthenticationQRLoginScanCoordinatorParameters {
let navigationRouter: NavigationRouterType

View file

@ -1,4 +1,4 @@
//
//
// Copyright 2022 New Vector Ltd
//
// Licensed under the Apache License, Version 2.0 (the "License");

View file

@ -24,7 +24,7 @@ struct UserSessionsOverview: View {
private let maxOtherSessionsToDisplay = 5
var body: some View {
GeometryReader { geometry in
GeometryReader { _ in
VStack(alignment: .leading, spacing: 0) {
ScrollView {
if hasSecurityRecommendations {