babylonhealth / DrawerKit

DrawerKit lets an UIViewController modally present another UIViewController in a manner similar to the way Apple's Maps app works.
https://github.com/Babylonpartners
MIT License
781 stars 44 forks source link

allow dynamic full expansion behaviour #103

Closed ilyapuchka closed 5 years ago

ilyapuchka commented 5 years ago

This PRs adds, in addition to static configuration, ability to change the full expansion behaviour dynamically via DrawerPresentable protocol, similarly to partially expanded behaviour

ilyapuchka commented 5 years ago

@inamiy the flag in configuration to allow partial state should be false in this case as the height of the drawer will be the same for both states and it's not currently handled properly, but I think it's a separate issue 🤷‍♂