TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Apr 2016 |
SPMSupports SPM | ✗ |
Maintained by ikemai.
To run the example project, clone the repo, and run pod install
from the Example directory first.
FullingSwiper is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "FullingSwiper"
It is the library which becomes able to return in Stack View
in entire surface wipe.
if let pushView = pushViewController, navigationController = navigationController {
pushView.fullingSwiper
.set(navigationController: navigationController)
navigationController.pushViewController(pushView, animated: true)
}
Set ‘popViewController’ handler Set 'shouldBeginGesture’ handler Set 'completed’ handler
fullingSwiper
.set(navigationController: navigationController)
.poping() { _ in
print("Poping!")
}
.shouldBeginGesture() { _ in
print("shouldBeginGesture!")
}
.completed() { _ in
print("completed!")
}
Param hideRatio is the value that less than hideRatio cancel pop. Default is 0.2. Param duration is the time when (pop or push) animation. Default is 0.3. Param scale is under view scale when (pop or push) animation. Default is 1.
pushView.fullingSwiper
.set(navigationController: navigationController)
.hideRatio(0.3)
.animateDuration(0.1)
.animateScale(0.95)
stack view
more than twoPlease set fullingSwiper.reset()
by all means in viewDidAppear
override func viewDidAppear(animated: Bool) {
super.viewDidAppear(animated)
// ☆ Set
fullingSwiper.reset()
}
Please do not set fullingSwiper in viewWillAppear
override func viewWillAppear(animated: Bool) {
super.viewWillAppear(animated)
// ☆ Do not set
if let navigationController = navigationController {
fullingSwiper.set(navigationController: navigationController)
}
}
ikemai
FullingSwiper is available under the MIT license. See the LICENSE file for more info.