scanerView Simply drag this file to Xcode and call the method in the viewDidAppear method which animates the layer at the centre .