Closed DarkDust closed 4 years ago
2 Warnings | |
---|---|
:warning: | This PR does not have any assignees yet. |
:warning: | SwipeableTabBarController/Classes/SwipeTransitioningProtocol.swift#L11 - TODOs should be resolved ((marcosgriselli): - Support Ob…).todo SwipeTransitioningProtocol.swift:11 |
1 Message | |
---|---|
:book: | Thanks @DarkDust! :tada: |
85.96%
Files changed | - | - |
---|---|---|
SwipeTransitionAnimator.swift | 100.00% |
:white_check_mark: |
100.00%
✅ No files affecting coverage found
Powered by xcov
Generated by :no_entry_sign: Danger
Thanks for the PR @DarkDust. I was thinking we can add the animationDuration
property to the SwipeTransitioningProtocol
definition so we avoid the guard let animator = transitioning as? SwipeTransitionAnimator
.
This change will let us define the duration in our viewDidLoad method like this:
tapAnimatedTransitioning?.animationDuration = 0.5
.
What do you think?
That is indeed a better solution. I've updated my PR.
Make the
SwipeTransitionAnimator
public and allow setting theanimationDuration
property. This way subclasses ofSwipeableTabBarController
can tweak the duration like this:Fixes #72.