A custom photo viewer that implements device motion scrolling, inspired by Facebook Paper.
A custom photo viewer that implements device motion scrolling, inspired by Facebook Paper.
CocoaPods
platform :ios
pod 'CRMotionView'
...
pod install
to install the dependencies.Source files
Just clone this repository or download it in zip-file. Then you will find source files under CRMotionView directory. Copy them to your project.
#import "CRMotionView.h"
CRMotionView *motionView = [[CRMotionView alloc] initWithFrame:self.view.bounds];
[motionView setImage:[UIImage imageNamed:@"Image"]];
UIView *myView = [UIView alloc] init...
[motionView setContentView:myView];
[self.view addSubview:motionView];
[motionView setMotionEnabled:NO];
CRMotionView *motionView = [[CRMotionView alloc] initWithFrame:self.view.bounds];
[motionView setImage:[UIImage imageNamed:@"Image"]];
[self.view addSubview:motionView];
Anyone who would like to contribute to the project is more than welcome.
CRMotionView is released under the MIT license. See
LICENSE.
Christian Roman