@@ -12,8 +12,8 @@ public protocol StickyViewControllerSupporting: UITabBarController {
1212 var collapsedHeight : CGFloat { get }
1313 var animationDuration : TimeInterval { get }
1414 func configureCollapsedTrainingView( withChildViewController childViewController: Expandable )
15- func removeCollapsibleView( withAnimation : Bool , duration : TimeInterval )
16- func collapseCollapsibleVC( duration : TimeInterval )
15+ func removeCollapsibleView( animated : Bool )
16+ func collapseCollapsibleVC( )
1717}
1818
1919public class StickyViewControllerSupportingTabBarController : UITabBarController , StickyViewControllerSupporting {
@@ -46,12 +46,12 @@ public class StickyViewControllerSupportingTabBarController: UITabBarController,
4646 collapsableVCFlow!. didMove ( toParent: self )
4747 }
4848
49- final public func removeCollapsibleView( withAnimation : Bool , duration : TimeInterval ) {
49+ final public func removeCollapsibleView( animated : Bool ) {
5050 guard let collapsableVCFlow = collapsableVCFlow else {
5151 return
5252 }
53- if withAnimation {
54- UIView . animate ( withDuration: duration ,
53+ if animated {
54+ UIView . animate ( withDuration: animationDuration ,
5555 animations: {
5656 collapsableVCFlow. heightConstraint. constant = 0.0
5757 collapsableVCFlow. view. layoutIfNeeded ( )
@@ -70,7 +70,7 @@ public class StickyViewControllerSupportingTabBarController: UITabBarController,
7070 }
7171 }
7272
73- final public func collapseCollapsibleVC( duration : TimeInterval ) {
73+ final public func collapseCollapsibleVC( ) {
7474 guard let collapsableVCFlow = collapsableVCFlow else {
7575 return
7676 }
0 commit comments