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
+2 -2
View File
@@ -6,8 +6,8 @@
// Copyright © 2022 element.io. All rights reserved.
//
import XCTest
@testable import ElementX
import XCTest
enum ImageAnonymizerTestsError: String, Error {
case screenshotNotFound
@@ -24,7 +24,7 @@ class ImageAnonymizerTests: XCTestCase {
}
func sampleScreenshot() throws -> UIImage {
let bundle = Bundle(for: self.classForCoder)
let bundle = Bundle(for: classForCoder)
guard let path = bundle.path(forResource: "sample_screenshot", ofType: "png"),
let image = UIImage(contentsOfFile: path) else {
throw ImageAnonymizerTestsError.screenshotNotFound