TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Jul 2015 |
SPMSupports SPM | ✗ |
Maintained by Dan Appel.
To run the example project, clone the repo, and run pod install
from the Example directory first.
None!
DASlideViewController is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "DASlideViewController"
Getting started is very simple.
The sample project should tell you everything that you need, but if you want a slightly more detailed walkthrough, this is a list of what you need to do:
import UIKit
import DASlideViewController
class ViewController: DASlideViewController {
}
Here’s all the code that you need (if you’re not using storyboard) to get started:
import UIKit
import DASlideViewController
class ViewController: DASlideViewController {
@IBAction func pannedScreen(sender: UIPanGestureRecognizer) {
self.dragViewWithPanGestureRecognizer(sender)
// ^ forward it to DASlideViewController
}
override func viewDidLoad() {
super.viewDidLoad()
}
override func viewDidLayoutSubviews() {
self.setupContainerViewPositions()
// move containers into their starting positions
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
}
}
DASlideViewController is available under the MIT license. See the LICENSE file for more info.