diff --git a/Sources/SnapshotTesting/Common/View.swift b/Sources/SnapshotTesting/Common/View.swift index 42be4d17a..7b9437b9f 100644 --- a/Sources/SnapshotTesting/Common/View.swift +++ b/Sources/SnapshotTesting/Common/View.swift @@ -612,7 +612,11 @@ extension View { callback(Image()) return } - wkWebView.takeSnapshot(with: nil) { image, _ in + let configuration = WKSnapshotConfiguration() + if #available(iOS 13, macOS 10.15, *) { + configuration.afterScreenUpdates = false + } + wkWebView.takeSnapshot(with: configuration) { image, _ in _ = delegate callback(image!) }