Latest 0.0.3
Homepage https://github.com/daront/DTSlidingModalSegue
License MIT
Platforms ios 8.0
Authors

Badge w/ Version
License
Platform

User this segue to present a view controller modally in a UINavigationController(push) style – sliding left or right.

Try demo project for more info.

System Requirements

iOS 8.0+, Swift 3.0

Installation

CocoaPods

Add into your Podfile.

“`:Podfile
pod "DTSlidingModalSegue"


Then `$ pod install`

## How to use

**present** -
In your storyboard, just assign a class `DTSlidingLeftSegue` or `DTSlidingRightSegue` to a segue.

**unwind** -
To dismiss a viewController, you need to create an unwind segue and assign it with a class `DTSlidingLeftUnwindSegue` or `DTSlidingLeftUnwindSegue`.

Note: in iOS8 and below, you might need to override `segueForUnwindingToViewController`

```swift
override func segueForUnwindingToViewController(toViewController: UIViewController, fromViewController: UIViewController, identifier: String?) -> UIStoryboardSegue? {
    return DTSlidingRightUnwindSegue(identifier: identifier, source: fromViewController, destination: toViewController)
}

If you don’t know wtx is unwind segue, please take a look at this link
http://stackoverflow.com/questions/12561735/what-are-unwind-segues-for-and-how-do-you-use-them

Author

Daron Tancharoen

License

DTLoadingIndicator is licensed under the MIT License, please see the LICENSE file.

Latest podspec

{
    "name": "DTSlidingModalSegue",
    "version": "0.0.3",
    "summary": "Present view controller modally in a UINavigationController(push) style",
    "homepage": "https://github.com/daront/DTSlidingModalSegue",
    "license": "MIT",
    "authors": {
        "Daron Tancharoen": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/daront/DTSlidingModalSegue.git",
        "tag": "0.0.3"
    },
    "source_files": "DTSlidingModalSegue/*.{swift}",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This