Skip to content

cemolcay/MotionImageView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MotionImageView

An image view lets you move its image with gyro

Demo

alt tag

Usage

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)

About

An image view lets you move its image with gyro

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages