Parallax control in Swift lang