An image view lets you move its image with gyro
Copy & paste MotionImageView.swift
into your project.
Then create a MotionImageView with frame and image.
let motionImage = MotionImageView (
frame: CGRect (x: 10, y: 30, width: 200, height: 200),
image: UIImage (named: "yosemite.jpg")!)
view.addSubview(motionImage)