/HLElasticView

My attempt at recreating Paper-like spring damping.

Primary LanguageObjective-C

HLElasticView

HLElasticView is a UIView subclass that supports elastic snapping. It is inspired by UIScrollView's rubber band bouncing and Facebook Paper.

HLElasticView takes flick velocity into account and uses CADisplayLink to update view positions. Spring and damping constants are defined in HLElasticView.m and can be modified to change the elasticity.