Skip to content

Commit

Permalink
test without using geometry reader
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoHinderling committed Nov 21, 2024
1 parent 949d377 commit f304a4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SnapshotPreviewsCore/AppKitRenderingStrategy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class AppKitRenderingStrategy: RenderingStrategy {
let image = vc?.view.snapshot()
completion(
SnapshotResult(
image: image != nil ? .success(image!) : .failure(RenderingError.failedRendering(vc?.view.bounds.size ?? .zero)),
image: image != nil ? .success(image!) : .failure(RenderingError.failedRendering(UIScreen.main.bounds.size)),
precision: precision,
accessibilityEnabled: accessibilityEnabled,
accessibilityMarkers: nil,
Expand Down

0 comments on commit f304a4b

Please sign in to comment.