material-components-ios
material-components-ios copied to clipboard
MDCBottomDrawerViewController not going completely full screen when Voice Over is enabled.
When Voice Over is enabled, MDCBottomDrawerViewController in theory always expands to full screen, regardless of the content. This is an explicit behavior that is being added for accessibility, and maximumInitialDrawerHeight is modified for this purpose.
When Voice Over is disabled, you can make the drawer go completely full-screen by assigning maximumInitialDrawerHeight = screenHeight+1. This can be done according to maximumInitialDrawerHeight's documentation, and it seems to work well. However, when Voice Over is enabled, the drawer overrides this variable, assigning maximumInitialDrawerHeight = screenHeight, which is causing the drawer not to go completely full screen, and it expands but sits below the status bar, similar to this:

Is this the expected behavior? It seems to be inconsistent with the behavior and documentation of setting maximumInitialDrawerHeight to be height of the screen + x.