4 Commits

Author SHA1 Message Date
Jeff Verkoeyen
dbb9ab1170 [AppBar] Add NavigationController example with AppBar initially hidden.
Note that this new example demonstrates a bug in which the AppBar is not, in fact, hidden when presented.

PiperOrigin-RevId: 311104930
2020-05-13 14:41:30 +00:00
Jeff Verkoeyen
459066d00e [AppBar] Don't hide the navigation bar in AppBarNavigationControllerExample.
This example doesn't actually manage its own app bar; it only presents one. This fixes a bug where the example did not show a navigation bar at all.

PiperOrigin-RevId: 310870101
2020-05-11 02:13:39 -07:00
Jeff Verkoeyen
de34b1cbfd [AppBar] Implement catalogShouldHideNavigation in all examples.
Implementing this method ensures that the navigation bar is hidden when these examples are shown.

PiperOrigin-RevId: 308044966
2020-04-23 07:21:30 -07:00
featherless
ae53242109 [AppBar] Add a shouldSetNavigationBarHiddenHideAppBar behavior flag. (#9001)
This new flag allows view controllers to control the visibility of their app bar via the standard UINavigationController setNavigationBarHidden: APIs. When enabled, calls to these APIs will result in the AppBar's visibility being adjusted.

Closes https://github.com/material-components/material-components-ios/issues/5185
2019-12-02 08:32:13 -05:00