Hi,
I am currently using this function to create a screenshot and blur this as a background for a dialog. I don't know how to deal with "UIGraphicsImageRenderer" to achieve the same. My code is:
` UIGraphicsBeginImageContextWithOptions(CGSize(width: p.view!.frame.size.width, height: p.view!.frame.size.height), true, 1)
p.view!.drawHierarchy(in: p.view!.frame, afterScreenUpdates: true)
//_ = UIGraphicsGetCurrentContext()
let image = UIGraphicsGetImageFromCurrentImageContext()
let img = UIGraphicsImageRendererContext().currentImage
UIGraphicsEndImageContext()
However, when using "img" it is only white with no content in it ...
Thanks for your help,
Br
Mario