mpospese / introducingcollectionviews Goto Github PK
View Code? Open in Web Editor NEWThe sample application to accompany my conference talk on UICollectionView.
The sample application to accompany my conference talk on UICollectionView.
Hello,
I'm having a hard time understanding the beginning of the setCellAttributes:forVisibleRect:
at CoverFlowLayout.m
file,
CGFloat distance = CGRectGetMidX(visibleRect) - attributes.center.x;
CGFloat normalizedDistance = distance / ACTIVE_DISTANCE;
BOOL isLeft = distance > 0;
CATransform3D transform = CATransform3DIdentity;
transform.m34 = -1/(4.6777 * self.itemSize.width);
Could you explain me what are you doing in these lines of code?
What's ACTIVE_DISTANCE
, and basically what are you doing?
Thanks for the project, helps quite a bit.
Hi, thanks for uploading this. Is it released under an open source license?
I found this very useful in teaching how to animate layout changes. There is the ability to pinch "open" from the stacked layout to other layouts. I would like to see the opposite implemented--pinching "closed" from other layouts into a stacked layout.
Hey,
Your code suffers from an interpolation bug, I extracted my logic from it and I explained the issue in depth in the following stack overflow question:
Interpolation issue on custom UICollectionCoverflowLayout.
Basically there's an abrupt transition when the cell bounces back to the center of the screen using your CoverFlow layout.
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.