TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Oct 2016 |
SPMSupports SPM | ✗ |
Maintained by Yongha Yoo.
Slide Up | Seamless Edge Dragg & Scroll | Slide Down after Scroll |
---|---|---|
import UIKit
import SeamlessSlideUpScrollView
class ViewController: UIViewController {
@IBOutlet weak var slideUpView: SeamlessSlideUpView!
@IBOutlet var tableView: SeamlessSlideUpTableView!
override func viewDidLoad() {
super.viewDidLoad()
// If the slide-up view is SeamlessSlideUpTableView
self.slideUpView.tableView = tableView
// If the slide-up view is SeamlessSlideUpScrollView
//self.slideUpView.scrollView = scrollView
self.slideUpView.delegate = self
}
@IBAction func showSlideUpView(sender: AnyObject) {
self.slideUpView.show()
}
}
extension ViewController: SeamlessSlideUpViewDelegate {
func slideUpViewWillAppear(slideUpView: SeamlessSlideUpView, height: CGFloat) {
}
func slideUpViewDidAppear(slideUpView: SeamlessSlideUpView, height: CGFloat) {
}
func slideUpViewWillDisappear(slideUpView: SeamlessSlideUpView) {
}
func slideUpViewDidDisappear(slideUpView: SeamlessSlideUpView) {
}
func slideUpViewDidDrag(slideUpView: SeamlessSlideUpView, height: CGFloat) {
}
}
SeamlessSlideUpView
must be added and cover on top of the all views.SeamlessSlideUpTableView
need not be attached to any superview. It’ll be automatically added to SeamlessSlideUpView
.pod 'SeamlessSlideUpScrollView'
pod 'SeamlessSlideUpScrollView' => '~>1'
MIT