I need to implement this Objective-C code in Swift 3.0 (I'm using Xcode 8 Beta 3):
// Note: this code comes from an Obj-C category on UIImage
CGImageRef imageRef = CGImageCreateWithImageInRect(self.CGImage, cropRect);
UIImage *image = [UIImage imageWithCGImage:imageRef scale:self.scale orientation:self.imageOrientation];
I can't find anything in the latest documentation for CGImageCreateWithImageInRect()
.