SwipeTransition
SwipeTransition allows trendy transitions using swipe gesture such as "swipe back".
Try the demo on the web (appetize.io): https://appetize.io/app/pebm8kveqhfj3wn204adn0xu8r
Features
- [x] Swipe back anywhere.
- [x] Swipe to dismiss anywhere.
- [x] Apply to all view controllers automatically!
- [x] No conflict of gestures on
UIScrollView
,UITableView
,UICollectionView
and so on.
Requirements
- Xcode 10.2 (10.0+)
- Swift 5 (4.2+)
- iOS 8.0+
Installation
Carthage
CocoaPods
Usage
The easiest way to use
Just setting these frameworks in the Linked Frameworks and Libraries
, it works. (if you use Carthage)
Notes: these frameworks use Method Swizzling.
If you want to set up manually without Method Swizzling, please use SwipeTransition.framework
only.
Manually set up
Notes: if you use `AutoSwipeBack.framework`, these are unnecessary.
Just use SwipeBackNavigationController
instead of UINavigationController
. Of course, you can set it with Interface Builder.
Another way is to set swipeBack
.
Notes: if you use `AutoSwipeToDismiss.framework`, these are unnecessary.
Just use SwipeToDismissNavigationController
instead of UINavigationController
. Of course, you can set it with Interface Builder.
Another way is to set swipeToDismiss
.
Enable/Disable gestures
Use isEnabled
property.
Configuration
You can also change the behavior such as animation.
Inheriting the configure class, you can set it with computed property.
Other usage
See this wiki
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Support this project
Donating to help me continue working on this project.
ToDo
- [ ] All
.modalPresentationStyle
support - [ ] Animation support (fade / custom)
- [ ] Some transition styles support (e.g. right to left swipe transition)