Created
January 28, 2018 08:23
-
-
Save rtking1993/2e31ae78464b0aa2a8b54f26c9cda06c to your computer and use it in GitHub Desktop.
UIInterpolatingMotionEffect implementation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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