From f7537bfa573655239cad66e3b5dc7977866ba1f5 Mon Sep 17 00:00:00 2001 From: noahsmartin Date: Mon, 21 Aug 2023 17:41:11 -0700 Subject: [PATCH] After screen updates (#22) --- Sources/SnapshotPreviewsCore/View+Snapshot.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SnapshotPreviewsCore/View+Snapshot.swift b/Sources/SnapshotPreviewsCore/View+Snapshot.swift index 3c63953..5b0d464 100644 --- a/Sources/SnapshotPreviewsCore/View+Snapshot.swift +++ b/Sources/SnapshotPreviewsCore/View+Snapshot.swift @@ -111,7 +111,7 @@ extension View { extension UIView { func render(size: CGSize, context: CGContext) -> Bool { if size.height < UIScreen.main.bounds.size.height * 2 { - return drawHierarchy(in: CGRect(origin: .zero, size: size), afterScreenUpdates: false) + return drawHierarchy(in: CGRect(origin: .zero, size: size), afterScreenUpdates: true) } else { layer.layerForSnapshot.render(in: context) return true