Skip to content

Commit

Permalink
Move SwiftUI bracketing
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencelis committed Jun 12, 2020
1 parent f79eb54 commit 5c3d214
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Sources/SnapshotTesting/Snapshotting/SwiftUIView.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@

import Foundation
#if canImport(SwiftUI)
import Foundation
import SwiftUI
#endif

/// The size constraint for a snapshot (similar to `PreviewLayout`).
public enum SwiftUISnapshotLayout {
Expand Down Expand Up @@ -82,4 +80,4 @@ extension Snapshotting where Value: SwiftUI.View, Format == UIImage {
}
}
#endif

#endif

0 comments on commit 5c3d214

Please sign in to comment.