SeamlessSlideUpScrollView 2.0.1

SeamlessSlideUpScrollView 2.0.1

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Oct 2016
SPMSupports SPM

Maintained by Yongha Yoo.




  • By
  • Yongha Yoo

SeamlessSlideUpScrollView

Screen Shots

Slide Up Seamless Edge Dragg & Scroll Slide Down after Scroll
screen_slideup screen_edge screen_slidedown

Usage

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.

Installation

Swift 3

pod 'SeamlessSlideUpScrollView'

Swift 2.3

pod 'SeamlessSlideUpScrollView' => '~>1'

License

MIT