Permalink
Browse files

update demo and readme

  • Loading branch information...
lkzhao committed Jan 6, 2016
1 parent 4a20f59 commit c767b25e81075913e4ea848601ba7a05d4b60745
View
@@ -6,7 +6,7 @@
A UIKit custom modal transition that simulates an elastic drag. Written in Swift.
![demo](https://github.com/lkzhao/ElasticTransition/blob/master/demo.gif?raw=true)
![demo](https://github.com/lkzhao/ElasticTransition/blob/master/imgs/demo.gif?raw=true)
## Requirements
View
BIN demo.gif
Binary file not shown.
View
@@ -14,21 +14,20 @@ It is basically a CAShapeLayer with a custom path. The path is defined by four a
3. radiusFactor
4. dragPoint
![elasticShape](https://github.com/lkzhao/ElasticTransition/blob/master/imgs/elasticShape.png?raw=true)
frame and edge are easy to understand. the radiusFactor defines the curvature of the edge when dragged. the dragPoint is the center of the curved edge.
Here is how the path is drawn:
![path](https://github.com/lkzhao/ElasticTransition/blob/master/imgs/path.png?raw=true)
Note that is the simpler drawing method which is used when radiusFactor >= 0.5.
For radiusFactor below 0.5 please see ElasticShapeLayer.swift
For the drawing method when radiusFactor is below 0.5, please see ElasticShapeLayer.swift.
# View Hierarchy & Layout
Two things are happening.
1. contentView is sliding on to the screen
2. shapeLayer's frame and dragPoint are updated
####Coming Soon
# Animation
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.

0 comments on commit c767b25

Please sign in to comment.