Skip to content

inkyfox/SeamlessSlideUpScrollView

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.

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