Post

Replies

Boosts

Views

Activity

Reply to Snapshot of a SwiftUI View
I'm struggling with this too. I've almost managed to get it working but the rendered image is incorrect.The NavigationView items bleed over into the below view (i.e. they are correct in the app but the rendered image has the navigation title and barbutton items shifted down and overapping the view just below the navigation view.In addition if I try to capture the whole screen and extract the specific subview, the reported view size is incorrect - i.e. the attached GeomertyReader provides the size of the view however when that size is used, the extracted image also includes a region around the view.
Mar ’20