Skip to content

Commit

Permalink
Take proposed fix from PR pointfreeco#692
Browse files Browse the repository at this point in the history
  • Loading branch information
nlamah authored and Ton Heijligers committed Aug 17, 2023
1 parent 3ff7202 commit 38e981b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Sources/SnapshotTesting/Common/View.swift
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,13 @@ extension View {
return
}
wkWebView.takeSnapshot(with: nil) { image, _ in
callback(image!)
let configuaration = WKSnapshotConfiguration()
if #available(iOS 13, macOS 10.15, *) {
configuaration.afterScreenUpdates = false
}
wkWebView.takeSnapshot(with: configuaration) { image, _ in
callback(image!)
}
}
}
} else {
Expand Down

0 comments on commit 38e981b

Please sign in to comment.