mkko / DrawerView

A drop-in view, to be used as a drawer anywhere in your app
MIT License
375 stars 57 forks source link

Added a flag switching if swiping down in a scrollView [embedded in a drawer] dismisses it #33

Closed wyszo closed 3 years ago

wyszo commented 4 years ago

(after scrollView scrolled to the top)

To test behaviour:

  1. In the example project, file ViewController, line 140, add: drawerView.childScrollViewsPanningCanDismissDrawer = false
  2. Run the example app, expand the bottom drawer by swiping up
  3. When drawer extended, drag down on the tableView embedded in the drawer

Default behaviour:

Behaviour when drawerView.childScrollViewsPanningCanDismissDrawer set to false:

wyszo commented 3 years ago

Is there anything I can do to move this forward? I can refactor/make changes if you leave me suggestions

mkko commented 3 years ago

Again, sorry for taking so long. Good idea this as well 👍