How to draw text into CIImage?
问题 How to draw into CIImage (or maybe into CVPixelBuffer , but I guess it easier to add text to CIImage )? not to UIImage I record video (.mp4 file) using AVAssetWriter and CMSampleBuffer (from video, audio inputs). While recording I want to add text on the video frames, I'm already converting CMSampleBuffer to CIImage , now I need somehow add text to CIImage and convert back to CVPixelBuffer . I didn't really find any simple examples in Swift how to add (draw) text to CIImage or add anything