Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
UIInterpolatingMotionEffect implementation
import UIKit
class InterpolatingMotionEffect: UIViewController {
@IBOutlet var exampleView: UIImageView!
override func 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