I am trying to get a screen grab of a view that has a SKScene in it. The technique I am using is:
UIGraphicsBeginImageContextWithOptions(self.view.bounds.si
As a faster alternative, you can use the textureFromNode method on SKView, which returns an image of the view as an SKTexture. Simply pass the SKScene as the argument:
let texture = skView.textureFromNode(scene)
Or to capture part of the scene:
let texture = skView.textureFromNode(scene, crop: cropRect)