Renders a snapshot of the complete view hierarchy as visible onscreen into the current context.
- iOS 7.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
A rectangle specified in the local coordinate system (bounds) of the view.
A Boolean value that indicates whether the snapshot should be rendered after recent changes have been incorporated. Specify the value
falseif you want to render a snapshot in the view hierarchy’s current state, which might not include recent changes.
true if the snapshot is complete, or
false if the snapshot is missing image data for any view in the hierarchy.
Use this method when you want to apply a graphical effect, such as a blur, to a view snapshot. This method is not as fast as the