Latest 1.3.0
Homepage https://github.com/younatics/Dismissable
License MIT
Platforms ios 9.0, requires ARC
Frameworks UIKit
Authors

Version
Carthage Compatible
License: MIT
Platform
Swift 4.0

Introduction

⚡️Pull to dismiss your modal view! Dismissable is super convenient to dismiss with gesture!

demo

Requirements

Dismissable is written in Swift 4.2. Compatible with iOS 9.0+

Installation

Cocoapods

Dismissable is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'Dismissable'

Carthage

github "younatics/Dismissable"

Usage

Conform DismissTriggerUsable where present modal ViewController

class ViewController: UIViewController, DismissTriggerUsable

Conform DismissableUsable in modal ViewController

class DetailViewController: UIViewController, DismissableUsable

Add dismissable when prsent modal view

let vc = UIStoryboard.init(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "detail") as! DetailViewController
vc.setup(self)
self.present(vc, animated: true, completion: nil)

Also you can customize dismiss animator

var dismissAnimator: DismissAnimator = {
  let animator = DismissAnimator()
  animator.transitionDuration = 0.35
  animator.dimmedViewStartColor = UIColor.black.withAlphaComponent(0.4)
  animator.dimmedViewEndColor = UIColor.black.withAlphaComponent(0)
  return animator
 }()

References

Please tell me or make pull request if you use this library in your application :)

Author

younatics
Twitter

License

Dismissable is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "Dismissable",
    "version": "1.3.0",
    "summary": "Magical way to pull to dismiss your modal view!",
    "description": "Magic will be happened when you use Dismissable!",
    "homepage": "https://github.com/younatics/Dismissable",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Seungyoun Yi": "[email protected]"
    },
    "source": {
        "git": "https://github.com/younatics/Dismissable.git",
        "tag": "1.3.0"
    },
    "source_files": "Dismissable/*.swift",
    "platforms": {
        "ios": "9.0"
    },
    "frameworks": "UIKit",
    "requires_arc": true
}

Pin It on Pinterest

Share This