Skip to content
Example project demonstrating the use of UIMotionEffect within an application.
Branch: master
Clone or download
Latest commit a6301f0 Apr 24, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
Motion Shadows Demo.xcodeproj Added 2 more example views for transforming non-primitives Apr 24, 2019
Motion Shadows Demo
.gitignore Added .gitignore Apr 24, 2019 Added README and .gitignore Apr 23, 2019

UIMotionEffect demo

This is an example project that demonstrates the use of UIMotionEffect within an application, and providing a UIView extension in Swift that makes it easy to configure these effects using UIAppearance or Interface Builder.

Interface Builder

When configuring a view in Interface Builder, utilize the motionOffset or shadowMotionOffset properties. When using negative values for width or height, it will automatically invert the device's gyro response accordingly. This also includes extra UIAppearance and IBInspectable properties for controlling borders and corner radii to make the demo more compelling.

You can’t perform that action at this time.