Giter Site home page Giter Site logo

gpapertrans's Introduction

GPaperTrans

Yet another UICollectionView layout transitions inspired by Facebook Paper App in Swift

Demo GPaperTrans

How to run

Please do not forget to run "pods install" before running the program. You can try "Standard" first. Then, you can try "Responsive"

I hope you will notice two differenes.

  • "Responsive" would be a little bit more responsive to gesture.
  • In "Standard", you will notice some of the swipe will be ignored.

How it works

This is basically UICollectionView layout to layout transition. (like taktamur/PAMTransitionSample[https://github.com/taktamur/PAMTransitionSample])

There are two main differences.

  1. AsynchNode from facebook is used in "Responsive" version instead of UIImageView. This makes transition a little bit more responsive. (Very subtle difference)

2)In "Standard" version, UICollectionView.finishInteractiveTransition() is called after UIPanGestureRecoginizer returned UIGestureRecognizerState.Ended.

Since finishing animation takes longer than expected, when the user begins new interaction before the animation finishes, it will be ignored.

In "Responsive" version, most of the finishing animation is controlled by Pop (also by Facebook). Since animation by pop can be interrupted, swipe action will not be ignored (in most cases. I admit still some of the swipe is ignored)

Todo

  • Use ASCollectionView

Requirements

  • iOS 8 or higher
  • ARC

Contact me

Goro Otsubo

License

This software is released under the MIT License, see LICENSE.txt.

gpapertrans's People

Contributors

goro-otsubo avatar

Stargazers

Yee Yong avatar Malik avatar 张斌斌 avatar Heberti Almeida avatar John Manos avatar Pranav Lathigara avatar ikemai avatar Ravi Rajendran avatar Hernan Gonzalez avatar Alex avatar stevenlfg avatar Tomas Jukin avatar  avatar Akira Ishii avatar Osamu TONOMORI avatar toguri avatar Yuji Hato avatar  avatar Eddie Saenz avatar Jack Pooley avatar Hiroki Matsuo avatar  avatar David Walsh avatar Emiaostein avatar 郭瑞丰 avatar Yury avatar  avatar Eric Bailey avatar Jesse Squires avatar David Sullivan avatar Vincent avatar CYANware Software Solutions avatar Steven Zhang avatar Sachin Palewar avatar Steve Moser avatar SuperFancy avatar Mark Flowers avatar  avatar Michael Pchelnikov avatar Mukesh Mandora avatar Jonathan Yee avatar Wayne Zhang avatar Bruno Bilescky avatar Bob Edmonston avatar Sapan Bhuta avatar Dimo Hamdy avatar Isuru Nanayakkara avatar Brad Pillow avatar Natasha Murashev avatar sinofake avatar Frederic D. avatar Mustafa Ibrahim avatar Sally Ahmed avatar  avatar palaniraja avatar Carabineiro avatar  avatar stefanfessler avatar xc avatar JustZht avatar whathewhat avatar Jason Jobe avatar Samish Chandra Kolli avatar

Watchers

James Cloos avatar  avatar Carabineiro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.