From fc2f86fe1fc8f813feedb037128634155c150c37 Mon Sep 17 00:00:00 2001 From: ripple_k Date: Fri, 10 Aug 2018 18:43:36 +0800 Subject: [PATCH] Update KYDrawerController.swift fix drawer dismiss fail --- KYDrawerController/Classes/KYDrawerController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KYDrawerController/Classes/KYDrawerController.swift b/KYDrawerController/Classes/KYDrawerController.swift index 0e2d026..c2277b1 100644 --- a/KYDrawerController/Classes/KYDrawerController.swift +++ b/KYDrawerController/Classes/KYDrawerController.swift @@ -124,7 +124,7 @@ open class KYDrawerController: UIViewController, UIGestureRecognizerDelegate { public var drawerState: DrawerState { get { return _containerView.isHidden ? .closed : .opened } - set { setDrawerState(drawerState, animated: false) } + set { setDrawerState(newValue, animated: false) } } @IBInspectable public var drawerWidth: CGFloat = 280 {