/TWSlidingView

create a slide animation on the UIView.

Primary LanguageSwiftMIT LicenseMIT

TWSlidingView

create a slide animation on the UIView.

like a android screen slide style(viewPager animation)
https://developer.android.com/training/animation/screen-slide.html

to provide three style.
Normal
ZoomOut
Depth

Demo

Demo

Usage

let slidingView = TWSlidingView(frame: CGRectMake(0, 0, self.view.bounds.width, self.view.bounds.height))
slidingView.slidingType = .ZoomOut
self.view.addSubview(slidingView)

add subView in slidingView

let sampleView = UIView(frame: slidingView.bounds)
sampleView.backgroundColor = UIColor.greenColor()
slidingView.addChildView(sampleView)

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

TWSlidingView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "TWSlidingView"

Author

Tae Woo Kang, http://magicmon.tistory.com

LICENSE

TWSlidingView is available under the MIT License. See the LICENSE file for more info.