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
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)
To run the example project, clone the repo, and run pod install
from the Example directory first.
TWSlidingView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "TWSlidingView"
Tae Woo Kang, http://magicmon.tistory.com
TWSlidingView is available under the MIT License. See the LICENSE file for more info.