Skip to content

Commit 5c3d214

Browse files
committed
Move SwiftUI bracketing
1 parent f79eb54 commit 5c3d214

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Sources/SnapshotTesting/Snapshotting/SwiftUIView.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
2-
import Foundation
31
#if canImport(SwiftUI)
2+
import Foundation
43
import SwiftUI
5-
#endif
64

75
/// The size constraint for a snapshot (similar to `PreviewLayout`).
86
public enum SwiftUISnapshotLayout {
@@ -82,4 +80,4 @@ extension Snapshotting where Value: SwiftUI.View, Format == UIImage {
8280
}
8381
}
8482
#endif
85-
83+
#endif

0 commit comments

Comments
 (0)