Skip to content

Commit 6becaac

Browse files
committed
Applied swift format
1 parent 4185d9a commit 6becaac

File tree

6 files changed

+12
-8
lines changed

6 files changed

+12
-8
lines changed

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ format:
3232
--ignore-unparsable-files \
3333
--in-place \
3434
--recursive \
35-
Package.swift ./Tests $(find ./Sources -name "*.swift" \
36-
-not -path "./Sources/Deprecated/*")
35+
Package.swift ./Tests $(find ./Sources -name "*.swift" \ -not -path "./Sources/Deprecated/*")
3736

3837
test-all: test-linux test-macos test-ios

Sources/InlineSnapshotTesting/SnapshotInlineObservation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
@_spi(Internals) import XCSnapshotTesting
21
import Foundation
2+
@_spi(Internals) import XCSnapshotTesting
33

44
final class SnapshotInlineObservation: @unchecked Sendable {
55

Sources/XCSnapshotTesting/Methods/UI/Core/SnapshotUIController.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ class SnapshotUIController: SDKViewController {
6868
}
6969

7070
let sizeListener = SizeListener()
71-
let rootView = content
71+
let rootView =
72+
content
7273
.frame(width: size(\.width), height: size(\.height))
7374
.sizeListener(sizeListener)
7475
#if os(macOS)

Sources/XCSnapshotTesting/Methods/UI/Core/SnapshotView.swift

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,12 @@ class SnapshotView: SDKView {
120120

121121
private func downscale(_ transformableView: SDKView, with size: CGSize) {
122122
let safeArea = configuration.safeArea
123-
let scale = scale(for: CGSize(
124-
width: size.width + safeArea.left + safeArea.right,
125-
height: size.height + safeArea.top + safeArea.bottom
126-
))
123+
let scale = scale(
124+
for: CGSize(
125+
width: size.width + safeArea.left + safeArea.right,
126+
height: size.height + safeArea.top + safeArea.bottom
127+
)
128+
)
127129
#if os(macOS)
128130
self.layer?.contentsScale = scale
129131
#else

Sources/XCSnapshotTesting/Tester/SnapshotTester.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Foundation
2+
23
#if canImport(XCTest)
34
import XCTest
45
#endif

Sources/XCSnapshotTesting/TestingSystem.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Foundation
2+
23
#if canImport(XCTest)
34
@preconcurrency import XCTest
45
#endif

0 commit comments

Comments
 (0)