Add an app bar to the bottom app bar demo
![simulator screen shot - iphone 8 plus - 2018-05-09 at 18 02 53](https://user-images.githubusercontent.com/1418389/39842126-53b96150-53b3-11e8-94c6-8b1ed403cbe5.png)
MODIFY
components/BottomAppBar/examples/BottomAppBarTypicalUseExample.m
components/BottomAppBar/examples/BottomAppBarTypicalUseExample.m
#import "supplemental/BottomAppBarTypicalUseSupplemental.h"
-@interface BottomAppBarTypicalUseExample ()
-
-@property(nonatomic, strong) MDCSemanticColorScheme *colorScheme;
-@property(nonatomic, strong) MDCTypographyScheme *typographyScheme;
-
-@end
-
@implementation BottomAppBarTypicalUseExample
- (id)init {

MODIFY
components/BottomAppBar/examples/supplemental/BottomAppBarTypicalUseSupplemental.h
components/BottomAppBar/examples/supplemental/BottomAppBarTypicalUseSupplemental.h
#import "BottomAppBarTypicalUseViewController.h"
#import "MaterialBottomAppBar.h"
+#import "MaterialColorScheme.h"
+#import "MaterialTypographyScheme.h"
@interface BottomAppBarTypicalUseExample : BottomAppBarTypicalUseViewController
+@property(nonatomic, strong) MDCSemanticColorScheme *colorScheme;
+
+@property(nonatomic, strong) MDCTypographyScheme *typographyScheme;
+
@end
@interface BottomAppBarTypicalUseExample (Supplemental)

MODIFY
components/BottomAppBar/examples/supplemental/BottomAppBarTypicalUseSupplemental.m
components/BottomAppBar/examples/supplemental/BottomAppBarTypicalUseSupplemental.m
#import "BottomAppBarTypicalUseSupplemental.h"
+#import "MaterialAppBar.h"
+#import "MaterialAppBar+ColorThemer.h"
+#import "MaterialAppBar+TypographyThemer.h"
+
static NSString *const kCellIdentifier = @"cell";
@interface BottomAppBarExampleTableViewController ()
@property(nonatomic, strong) UISwitch *fabVisibilitySwitch;
+@property(nonatomic, strong) MDCAppBar *appBar;
+@property(nonatomic, strong) MDCSemanticColorScheme *colorScheme;
+@property(nonatomic, strong) MDCTypographyScheme *typographyScheme;
@end
@implementation BottomAppBarTypicalUseExample (CatalogByConvention)
@@ -52,6 +59,8 @@ static NSString *const kCellIdentifier = @"cell";
BottomAppBarExampleTableViewController *tableView =
[[BottomAppBarExampleTableViewController alloc] initWithNibName:nil bundle:nil];
tableView.bottomBarView = self.bottomBarView;
+ tableView.colorScheme = self.colorScheme;
+ tableView.typographyScheme = self.typographyScheme;
self.viewController = tableView;
}
@@ -74,6 +83,11 @@ static NSString *const kCellIdentifier = @"cell";
@"Secondary Elevation Floating Button",
@"Visible FAB" ];
_listItems = listItems;
+
+ self.title = @"Bottom App Bar";
+
+ _appBar = [[MDCAppBar alloc] init];
+ [self addChildViewController:_appBar.headerViewController];
}
return self;
}
@@ -81,6 +95,14 @@ static NSString *const kCellIdentifier = @"cell";
- (void)viewDidLoad {
[super viewDidLoad];
+ [MDCAppBarTypographyThemer applyTypographyScheme:self.typographyScheme toAppBar:_appBar];
+ [MDCAppBarColorThemer applySemanticColorScheme:self.colorScheme toAppBar:_appBar];
+
+ self.appBar.headerViewController.headerView.trackingScrollView = self.tableView;
+ self.tableView.delegate = self.appBar.headerViewController;
+
+ [self.appBar addSubviewsToParent];
+
self.fabVisibilitySwitch = [[UISwitch alloc] init];
self.fabVisibilitySwitch.on = !self.bottomBarView.floatingButtonHidden;
[self.fabVisibilitySwitch addTarget:self

Add an app bar to the bottom app bar demo (#3760)

https://www.pivotaltracker.com/story/show/157256931

![simulator screen shot - iphone 8 plus - 2018-05-09 at 18 02 53](https://user-images.githubusercontent.com/1418389/39842126-53b96150-53b3-11e8-94c6-8b1ed403cbe5.png)