To capture my app\'s interface for testing purposes, I\'m calling
let snapview = UIScreen.main.snapshotView(afterScreenUpdates: true)
This works