I am work with image overlay for watermark effect in video using swift.I am using AVFoundation for this but somehow I am not succeed.
AVFoundation
Following is my code
For me (what I see in your code), your are not adding the parentlayer to the screen.
parentlayer
You create a CALayer() to add videolayer, imglayer and titleLayer into a new layer but you don't add this last one on the screen.
videolayer
imglayer
titleLayer
yourView.layer.addSublayer(parentlayer)
Hope this help you