DrawerKit v0.7.0 Release Notes
Release Date: 2018-10-30 // about 6 years ago-
🔧 DrawerKit now supports interactions with the presenting view. By default, the presenting view will receive touch events when the drawer is in the
collapsed
orpartiallyExpanded
state. This can be configured via the newpassthroughTouchesInStates
configuration.Drawer corner radius animation can now be disabled.
DrawerKit now has a new state,
dismissed
, to differentiate between beingcollapsed
(to a particular non-zero height) and being actually dismissed.It's possible to make the drawer visible on screen when in the
collapsed
state, via the new propertyheightOfCollapsedDrawer
in theDrawerPresentable
protocol.🔧 The drawer can now be presented in a particular initial state, via the new
initialState
configuration.
Previous changes from v0.6.0
-
👍 DrawerKit now supports pull-to-dismiss driven by a
UIScrollView
inside the drawer content. (#58)You may specify the
UIScrollView
to DrawerKit through its presentation controller:override func viewWillAppear(\_ animated: Bool) { super.viewWillAppear(animated) // Install `tableView` as the pull-to-dismiss participant. drawerPresentationController?.scrollViewForPullToDismiss = tableView }
🔧 Drawer corners may now be configured in
DrawerConfiguration
to be always visible below the status bar. (#61)