before i post some code and say some things, i'm using this pod for taking photos and videos : https://github.com/imaginary-cloud/CameraManager What i want to do is simply take the captured image, put a text over it at the bottom (that text can be picked via an existing array of phrases that i already created) and i want to merge this two entities into one new image, that it will be displayed in a new view controller and saved in the camera roll, after the original of course. How can i do that? Thanks
Here's my capturePhoto code:
let when = DispatchTime.now() + 5
func capturePicture(){
_ = cameraManager.addPreviewLayerToView(cameraPreview, newCameraOutputMode: CameraOutputMode.stillImage)
DispatchQueue.main.asyncAfter(deadline: .now() + 0.4) {
// do stuff x seconds later
self.cameraManager.capturePictureWithCompletion({ (image, error) -> Void in
self.cameraPreview.image = image
})
}
}