christianroman / crmotionview Goto Github PK
View Code? Open in Web Editor NEWA custom photo viewer that implements device motion scrolling, inspired by Facebook Paper.
License: MIT License
A custom photo viewer that implements device motion scrolling, inspired by Facebook Paper.
License: MIT License
If we make [motionView setImage:theimage]; with an already image set we have a problem with the scroll indicator. For this moment my only on solution is to imageview alloc in the setImage. like that :
// edit Resolved.
I just add this API to my swift project :
motionView = CRMotionView(frame: view.frame, image: UIImage(named: "\(animalName) BG”))
view.addSubview(motionView)
My app will crash due to this error :
Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan 368]’
how should I fix this ?
Thank you
I am trying to do this:
var motionView: CRMotionView = CRMotionView(frame: self.view.bounds)
motionView.setImage(image)
motionView.setMotionEnabled(true)
but it says 'CRMotionView' does not have a member named 'setImage'
. What is the correct way to use this in Swift?
how can we improve the fluidity to be more like Facebook's paper ?
It would be great to see an update, similar to the app which inspired this project, in which the image/view first appears at full size (AspectFit) and then, tapping the image once will cause it to zoom in (AspectFill) and provide the current motion functionality.
Single-Tapping again will make the image go back to full-size (AspectFIt).
This was an update that Paper added recently and it really works great.
I am using Xcode 6 beta, the background ImageView was successfully showing on the simulator, but when I build my project with my own iPhone, imageView is not shown.
However, if I use Xcode 5 everything is good.
I also tried the DEMO project, I got the same problem. Does anyone knows the reason of it??
Many thanks!
this project will have support for StoryBoards? any example or something thanks :)
After adding a CRMotionView to my project (ARC based), memory is constantly increasing. What can be the cause?
If image height is not 1136px:
...
}
Would be great if gifs were supported
I am always getting "There is not available gyro." but everything seems to work. Why am I getting this in the console?
There's a problem:If the parent view is scrollView
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.