Skip to content

Latest commit

 

History

History
executable file
·
9 lines (6 loc) · 594 Bytes

README.md

File metadata and controls

executable file
·
9 lines (6 loc) · 594 Bytes

DrawerDemo

Demo of a bottom drawer that slides in and out.

Unfortunately, doesn't work. But will work if you add this breakpoint.

Screen Shot

Solution The reason it is flaky is explained here: https://stackoverflow.com/a/53717173/1256015. The drawer view is added to the parent view, but the code failed to add the child view controller to the parent as explained by Apple at https://developer.apple.com/library/archive/featuredarticles/ViewControllerPGforiPhoneOS/ImplementingaContainerViewController.html. I had not learned about container views until today.