When running in simulator (iPhone 7 and iPhone XR) snapshotView(afterScreenUpdates: true) works great and as expected. However when I test it on my physical iPhone 7 device it returns a blank view but with the correct frame
I need the UIView object and cannot use a UIImage as many of the previous answers to similar questions suggest.
let snappedView = view.snapshotView(afterScreenUpdates: true)