takeSnapshot(with: snapshotConfiguration) { (image, error) in }
And
UIGraphicsBeginImageContext(viewToSave.contentSize) view.layer.re