SwipeModalViewController 1.0.0

SwipeModalViewController 1.0.0

Maintained by Keisuke Yamagishi.



  • By
  • keisuke

SwipeViewController

Overview

It is a UIViewController that can be closed by swiping.

Use it

Via SSH: For those who plan on regularly making direct commits, cloning over SSH may provide a better experience (which requires uploading SSH keys to GitHub):

$ git clone [email protected]:keisukeYamagishi/SwipeViewController.git

Via https: For those checking out sources as read-only, HTTPS works best:

$ git clone https://github.com/keisukeYamagishi/SwipeViewController.git

Sample code

let swipeVc = SwipeViewController.instantiateViewController
self.present(swipeVc, animated: true, completion: nil)

delegate method

extension ViewController: SwipeViewControllerDelegate{
    func swipeView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
        print ("indexPath: \(indexPath)")
    }
}