Skip to content

Commit

Permalink
After screen updates (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
noahsmartin authored Aug 22, 2023
1 parent 4aca1ee commit f7537bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SnapshotPreviewsCore/View+Snapshot.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f7537bf

Please sign in to comment.