victorbaro / popplayground Goto Github PK
View Code? Open in Web Editor NEWExamples and Controls made entirely using Pop (Facebook's framework)
Examples and Controls made entirely using Pop (Facebook's framework)
I know here is a place to fire issues.
But I don't know where to ask questions, so I put it here.
I rewote custom segue in swift
override func perform() {
let sourceViewController = self.sourceViewController as! ViewController
let destinationViewController = self.destinationViewController as! ImageSlideShowViewController
let layer = destinationViewController.view.layer
layer.pop_removeAllAnimations()
NSLog("Layer frame X: %f", layer.frame.origin.x);
NSLog("Layer frame width: %f", layer.frame.size.width);
let xAnim = POPSpringAnimation(propertyNamed: kPOPLayerPositionX)
let sizeAnim = POPSpringAnimation(propertyNamed: kPOPLayerSize)
xAnim.fromValue = 320
xAnim.springBounciness = 16
xAnim.springSpeed = 10
// About 20% of it's normal size
sizeAnim.fromValue = NSValue(CGSize: CGSizeMake(64, 114))
xAnim.completionBlock = { (_, _) in
NSLog("Animation has completed.");
NSLog("Layer frame X: %f", layer.frame.origin.x);
};
layer.pop_addAnimation(xAnim, forKey:"position")
layer.pop_addAnimation(sizeAnim, forKey:"size")
sourceViewController.navigationController?.pushViewController(destinationViewController, animated:false)
}
but when I click the cell, perform executes 3 times.
can not reproduce in the original objectivec project.
could you help me?
Shows:
/PopPlayground-master/PopPlayground/ViewController.m:46:41: No known class method for selector 'flatRandomColor'
Hi @ibaro,
I tried to run your project and learn facebook pop animation from it, but I got some errors. I am actually using xcode 6.1. And the project won't run.
Second for the device can you support also the iphone 4. Because now I see only the ipads simulerator when trying to run the project.
Thanks
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.