Skip to content

Commit

Permalink
Merge pull request #411 from TICESoftware/useAnimationDuration
Browse files Browse the repository at this point in the history
Use animationDuration for transition animation duration
  • Loading branch information
ulmentflam authored Apr 8, 2021
2 parents 76f0dd6 + 497f2e3 commit e4c7f61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PulleyLib/PulleyViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1419,7 +1419,7 @@ open class PulleyViewController: UIViewController, PulleyDrawerViewControllerDel

if animated
{
UIView.transition(with: primaryContentContainer, duration: 0.5, options: .transitionCrossDissolve, animations: { [weak self] () -> Void in
UIView.transition(with: primaryContentContainer, duration: animationDuration, options: .transitionCrossDissolve, animations: { [weak self] () -> Void in

self?.primaryContentViewController = controller

Expand Down Expand Up @@ -1462,7 +1462,7 @@ open class PulleyViewController: UIViewController, PulleyDrawerViewControllerDel

if animated
{
UIView.transition(with: drawerContentContainer, duration: 0.5, options: .transitionCrossDissolve, animations: { [weak self] () -> Void in
UIView.transition(with: drawerContentContainer, duration: animationDuration, options: .transitionCrossDissolve, animations: { [weak self] () -> Void in

self?.drawerContentViewController = controller
self?.setDrawerPosition(position: position ?? (self?.drawerPosition ?? .collapsed), animated: false)
Expand Down

0 comments on commit e4c7f61

Please sign in to comment.