Noticed other methods similar to this one had the drawHierarchyInKeyWindow parameter. For our use case we are using UIViewControllers as containers to SwiftUI views that contain UIVisualEffects. Without this parameter the UIVisualEffect would appear transparent in the snapshots.
What does this Pull Request do?
Adds the
drawHeirarchyInKeyWindow
parameter to theimage
method inUIViewController.swift
file.Use case:
Noticed other methods similar to this one had the
drawHierarchyInKeyWindow
parameter. For our use case we are using UIViewControllers as containers to SwiftUI views that contain UIVisualEffects. Without this parameter the UIVisualEffect would appear transparent in the snapshots.Is this something we can add? Thanks!