https://github.com/lengocduy/dlswipetopopcontroller
Reusable iOS's behavior drag or swipe to pop ViewController
https://github.com/lengocduy/dlswipetopopcontroller
animation draggable pan-gesture popviewcontroller swipe-gestures swipe-right swipeable
Last synced: 12 months ago
JSON representation
Reusable iOS's behavior drag or swipe to pop ViewController
- Host: GitHub
- URL: https://github.com/lengocduy/dlswipetopopcontroller
- Owner: lengocduy
- License: mit
- Created: 2021-10-31T16:03:58.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-13T11:48:48.000Z (over 4 years ago)
- Last Synced: 2025-05-23T19:38:37.888Z (about 1 year ago)
- Topics: animation, draggable, pan-gesture, popviewcontroller, swipe-gestures, swipe-right, swipeable
- Language: Swift
- Homepage: https://lengocduy.github.io/DLSwipeToPopController/
- Size: 1.51 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# DLSwipeToPopController
Reusable iOS's behavior to pop ViewController base on [SwipeRightToPopController](https://github.com/rishi420/SwipeRightToPopController):
- Swipe from Right to Left to pop ViewController.
- Customize base on `velocity`
- Drag from Right to Left to pop ViewController.
- Customize base on `percent` of distance with the screen width
## Requirements
- Xcode 11+
- Swift 5.0+
## Installing
There are three ways to install `DLSwipeToPopController`
### 1. CocoaPods
Just add to your project's `Podfile`:
```
pod 'DLSwipeToPopController', '~> 1.1'
```
### 2. Carthage
Add following to `Cartfile`:
```
github "lengocduy/DLSwipeToPopController" ~> 1.1
```
### 3. Swift Package Manager
Create a `Package.swift` file:
```
// swift-tools-version:5.0
import PackageDescription
let package = Package(
name: "TestSwipeToPopController",
dependencies: [
.package(url: "https://github.com/lengocduy/DLSwipeToPopController.git", from: "1.1.4"),
],
targets: [
.target(
name: "TestSwipeToPopController",
dependencies: ["DLSwipeToPopController"])
]
)
```
## Architecture

## License
DLSwipeToPopController is available under the MIT license. See the [LICENSE](LICENSE.md) file for more info.