|
@@ -83,6 +83,9 @@ - (void)commonMDCBottomAppBarViewInit { |
|
|
[self addFloatingButton]; |
|
|
[self addBottomBarLayer]; |
|
|
[self addNavBar]; |
|
|
|
|
|
self.barTintColor = UIColor.whiteColor; |
|
|
self.shadowColor = UIColor.blackColor; |
|
|
} |
|
|
|
|
|
- (void)addFloatingButton { |
|
@@ -251,6 +254,9 @@ - (void)layoutSubviews { |
|
|
self.floatingButton.center = |
|
|
[self getFloatingButtonCenterPositionForAppBarWidth:CGRectGetWidth(self.bounds)]; |
|
|
[self renderPathBasedOnFloatingButtonVisibitlityAnimated:NO]; |
|
|
|
|
|
self.bottomBarLayer.fillColor = self.barTintColor.CGColor; |
|
|
self.bottomBarLayer.shadowColor = self.shadowColor.CGColor; |
|
|
} |
|
|
|
|
|
- (UIEdgeInsets)mdc_safeAreaInsets { |
|
@@ -384,13 +390,10 @@ - (void)setTrailingBarButtonItems:(NSArray<UIBarButtonItem *> *)trailingBarButto |
|
|
} |
|
|
|
|
|
- (void)setBarTintColor:(UIColor *)barTintColor { |
|
|
_barTintColor = barTintColor; |
|
|
_bottomBarLayer.fillColor = barTintColor.CGColor; |
|
|
} |
|
|
|
|
|
- (UIColor *)barTintColor { |
|
|
return [UIColor colorWithCGColor:_bottomBarLayer.fillColor]; |
|
|
} |
|
|
|
|
|
- (void)setLeadingBarItemsTintColor:(UIColor *)leadingBarItemsTintColor { |
|
|
NSParameterAssert(leadingBarItemsTintColor); |
|
|
if (!leadingBarItemsTintColor) { |
|
@@ -416,13 +419,10 @@ - (UIColor *)trailingBarItemsTintColor { |
|
|
} |
|
|
|
|
|
- (void)setShadowColor:(UIColor *)shadowColor { |
|
|
_shadowColor = shadowColor; |
|
|
_bottomBarLayer.shadowColor = shadowColor.CGColor; |
|
|
} |
|
|
|
|
|
- (UIColor *)shadowColor { |
|
|
return [UIColor colorWithCGColor:_bottomBarLayer.shadowColor]; |
|
|
} |
|
|
|
|
|
#pragma mark TraitCollection |
|
|
|
|
|
- (void)traitCollectionDidChange:(UITraitCollection *)previousTraitCollection { |
|
|
0 comments on commit
bc4a297