diff --git a/Sources/SnapshotPreviewsCore/View+Snapshot.swift b/Sources/SnapshotPreviewsCore/View+Snapshot.swift index 2c25b30..8a7be9b 100644 --- a/Sources/SnapshotPreviewsCore/View+Snapshot.swift +++ b/Sources/SnapshotPreviewsCore/View+Snapshot.swift @@ -5,13 +5,13 @@ // Created by Noah Martin on 12/22/22. // -#if canImport(UIKit) || canImport(AppKit) +import CoreGraphics + public enum RenderingError: Error { case failedRendering(CGSize) case maxSize(CGSize) case expandingViewTimeout(CGSize) } -#endif #if canImport(UIKit) && !os(visionOS) && !os(watchOS) && !os(tvOS) import Foundation