Skip to content

inkyfox/SeamlessSlideUpScrollView

Repository files navigation

SeamlessSlideUpScrollView

Swift Swift Carthage compatible Version License Platform

###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

CocoaPods

Swift 3

pod 'SeamlessSlideUpScrollView'

Swift 2.3

pod 'SeamlessSlideUpScrollView' => '~>1'

Carthage

github "inkyfox/SeamlessSlideUpScrollView"

Author

Yongha Yoo

License

MIT

About

Slide-up UIScrollView/UITableView that can be Scrolled Continuously after reached to top edge by Dragging

Resources

License

Stars

Watchers

Forks

Packages

No packages published