Add SwiftFormat to the project. (#129)

* Run swiftformat for whitespace.
* Run swiftformat with some rules.
This commit is contained in:
Doug
2022-07-06 14:49:05 +01:00
committed by GitHub
parent 26d8affaa8
commit 02eb4b35e2
188 changed files with 759 additions and 717 deletions
@@ -1,4 +1,4 @@
//
//
// Copyright 2021 New Vector Ltd
//
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,8 +14,8 @@
// limitations under the License.
//
import Foundation
@testable import ElementX
import Foundation
class UserIndicatorPresenterSpy: UserIndicatorViewPresentable {
var intel = [String]()
@@ -1,4 +1,4 @@
//
//
// Copyright 2021 New Vector Ltd
//
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,9 +14,9 @@
// limitations under the License.
//
@testable import ElementX
import Foundation
import XCTest
@testable import ElementX
class UserIndicatorQueueTests: XCTestCase {
var indicators: [UserIndicator]!
@@ -28,7 +28,7 @@ class UserIndicatorQueueTests: XCTestCase {
}
func makeRequest() -> UserIndicatorRequest {
return UserIndicatorRequest(
UserIndicatorRequest(
presenter: UserIndicatorPresenterSpy(),
dismissal: .manual
)
@@ -1,4 +1,4 @@
//
//
// Copyright 2021 New Vector Ltd
//
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,9 +14,9 @@
// limitations under the License.
//
@testable import ElementX
import Foundation
import XCTest
@testable import ElementX
class UserIndicatorTests: XCTestCase {
var presenter: UserIndicatorPresenterSpy!
@@ -26,7 +26,7 @@ class UserIndicatorTests: XCTestCase {
presenter = UserIndicatorPresenterSpy()
}
func makeIndicator(dismissal: UserIndicatorDismissal = .manual, callback: @escaping () -> Void = {}) -> UserIndicator {
func makeIndicator(dismissal: UserIndicatorDismissal = .manual, callback: @escaping () -> Void = { }) -> UserIndicator {
let request = UserIndicatorRequest(
presenter: presenter,
dismissal: dismissal