mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-29 07:42:40 +00:00
Fixed various SwiftFormat warnings
This commit is contained in:
parent
881662b088
commit
94f5dc477b
5 changed files with 11 additions and 6 deletions
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ class MockQRLoginService: QRLoginServiceProtocol {
|
|||
canDisplayQR: Bool = true) {
|
||||
self.state = state
|
||||
self.mode = mode
|
||||
self.mockCanDisplayQR = canDisplayQR
|
||||
mockCanDisplayQR = canDisplayQR
|
||||
}
|
||||
|
||||
// MARK: - QRLoginServiceProtocol
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
//
|
||||
|
||||
import CommonKit
|
||||
import SwiftUI
|
||||
import MatrixSDK
|
||||
import SwiftUI
|
||||
|
||||
struct AuthenticationQRLoginScanCoordinatorParameters {
|
||||
let navigationRouter: NavigationRouterType
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
//
|
||||
//
|
||||
// Copyright 2022 New Vector Ltd
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue