Skip to content

Instantly share code, notes, and snippets.

@rtking1993
Created January 28, 2018 08:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtking1993/2e31ae78464b0aa2a8b54f26c9cda06c to your computer and use it in GitHub Desktop.
Save rtking1993/2e31ae78464b0aa2a8b54f26c9cda06c to your computer and use it in GitHub Desktop.
UIInterpolatingMotionEffect implementation
import UIKit
class InterpolatingMotionEffect: UIViewController {
@IBOutlet var exampleView: UIImageView!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
// Add motion effect to our example image view
// Adjusting the intensity will change the severity of the effect
exampleView.motionEffect(intensity: 50)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment