After applying an AVVideoComposition to my AVPlayerItem, the filter I apply does work, but the video gets rotated in the AVPlayerLayer.
AVVideoComposition
AVPlayerItem
AVPlayerLayer
Instead of assuming that the image will be filtered, check first if filteredImage is nil. If not, then request.finish(with: filteredImage, context: nil)
filteredImage
nil
request.finish(with: filteredImage, context: nil)
However, if it is nil you must request.finish(with: SomeError)
request.finish(with: SomeError)
This is as per the docs.