{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/ios-snapshot-test-case/issues/70","labels_url":"https://api.github.com/repos/facebook/ios-snapshot-test-case/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/facebook/ios-snapshot-test-case/issues/70/comments","events_url":"https://api.github.com/repos/facebook/ios-snapshot-test-case/issues/70/events","html_url":"https://github.com/facebook/ios-snapshot-test-case/issues/70","id":69432852,"number":70,"title":"UIVisualEffect shows without blur","user":{"login":"squarefrog","id":343450,"avatar_url":"https://avatars.githubusercontent.com/u/343450?v=3","gravatar_id":"","url":"https://api.github.com/users/squarefrog","html_url":"https://github.com/squarefrog","followers_url":"https://api.github.com/users/squarefrog/followers","following_url":"https://api.github.com/users/squarefrog/following{/other_user}","gists_url":"https://api.github.com/users/squarefrog/gists{/gist_id}","starred_url":"https://api.github.com/users/squarefrog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/squarefrog/subscriptions","organizations_url":"https://api.github.com/users/squarefrog/orgs","repos_url":"https://api.github.com/users/squarefrog/repos","events_url":"https://api.github.com/users/squarefrog/events{/privacy}","received_events_url":"https://api.github.com/users/squarefrog/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-19T15:00:20Z","updated_at":"2015-04-21T17:47:18Z","closed_at":null,"body":"If your view has a `UIVisualEffectView`, then the snapshot is rendered without a blur effect. The root of this problem is that you need to wait for view updates before taking the snapshot. This is closely tied to the removal of drawViewHierarchyInRect:afterScreenUpdates in #52 \r\n\r\nAdding in the wait for screen update fixes the snapshot's blur, while breaking the auto layout.\r\n\r\nIs there a way to delay capturing the snapshot for an arbitrary amount of time? "},"comment":{"url":"https://api.github.com/repos/facebook/ios-snapshot-test-case/issues/comments/94885714","html_url":"https://github.com/facebook/ios-snapshot-test-case/issues/70#issuecomment-94885714","issue_url":"https://api.github.com/repos/facebook/ios-snapshot-test-case/issues/70","id":94885714,"user":{"login":"squarefrog","id":343450,"avatar_url":"https://avatars.githubusercontent.com/u/343450?v=3","gravatar_id":"","url":"https://api.github.com/users/squarefrog","html_url":"https://github.com/squarefrog","followers_url":"https://api.github.com/users/squarefrog/followers","following_url":"https://api.github.com/users/squarefrog/following{/other_user}","gists_url":"https://api.github.com/users/squarefrog/gists{/gist_id}","starred_url":"https://api.github.com/users/squarefrog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/squarefrog/subscriptions","organizations_url":"https://api.github.com/users/squarefrog/orgs","repos_url":"https://api.github.com/users/squarefrog/repos","events_url":"https://api.github.com/users/squarefrog/events{/privacy}","received_events_url":"https://api.github.com/users/squarefrog/received_events","type":"User","site_admin":false},"created_at":"2015-04-21T17:47:18Z","updated_at":"2015-04-21T17:47:18Z","body":"if I run the run loop it doesn't render the blur, but adding in the previous -draw..:afterScreenUpdates call does allow the blur to render. \r\n\r\nI should state the test is still usable, as it will always render without the blur. But sometimes it's useful to use the snapshot while developing a heavily nested view."}}