mirror of
https://github.com/material-components/material-components-ios.git
synced 2026-02-04 00:44:33 +08:00
[NavigationBar] Add umbrella headers for all extension targets. (#3471)
Also updated all imports to make use of the umbrella headers. Pivotal story: https://www.pivotaltracker.com/story/show/157045283
This commit is contained in:
parent
0cc6b487ae
commit
e5679888fe
@ -17,7 +17,7 @@
|
||||
#import "MDCAppBarColorThemer.h"
|
||||
|
||||
#import "MDCFlexibleHeaderColorThemer.h"
|
||||
#import "MDCNavigationBarColorThemer.h"
|
||||
#import "MaterialNavigationBar+ColorThemer.h"
|
||||
|
||||
@implementation MDCAppBarColorThemer
|
||||
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
|
||||
#import "MDCAppBarTypographyThemer.h"
|
||||
|
||||
#import "MDCNavigationBarTypographyThemer.h"
|
||||
#import "MaterialNavigationBar+TypographyThemer.h"
|
||||
|
||||
@implementation MDCAppBarTypographyThemer
|
||||
|
||||
|
||||
@ -23,8 +23,8 @@
|
||||
#import "MaterialIcons+ic_info.h"
|
||||
#import "MaterialIcons+ic_reorder.h"
|
||||
#import "MaterialNavigationBar.h"
|
||||
#import "MDCNavigationBarColorThemer.h"
|
||||
#import "MDCNavigationBarTypographyThemer.h"
|
||||
#import "MaterialNavigationBar+ColorThemer.h"
|
||||
#import "MaterialNavigationBar+TypographyThemer.h"
|
||||
#import "supplemental/NavigationBarTypicalUseExampleSupplemental.h"
|
||||
|
||||
@interface NavigationBarIconsExample ()
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
#import "MaterialIcons+ic_arrow_back.h"
|
||||
#import "MaterialNavigationBar.h"
|
||||
#import "MaterialTextFields.h"
|
||||
#import "MDCNavigationBarColorThemer.h"
|
||||
#import "MaterialNavigationBar+ColorThemer.h"
|
||||
#import <MDFInternationalization/MDFInternationalization.h>
|
||||
|
||||
@interface NavigationBarLayoutExample : UIViewController <UITextFieldDelegate>
|
||||
|
||||
@ -24,7 +24,7 @@
|
||||
#import "MaterialIcons+ic_reorder.h"
|
||||
#import "MaterialIcons+ic_check_circle.h"
|
||||
#import "MaterialNavigationBar.h"
|
||||
#import "MDCNavigationBarColorThemer.h"
|
||||
#import "MaterialNavigationBar+ColorThemer.h"
|
||||
#import "supplemental/NavigationBarTypicalUseExampleSupplemental.h"
|
||||
|
||||
@interface NavigationBarRTL : UIViewController
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
#import "MaterialNavigationBar.h"
|
||||
#import "MDCNavigationBarColorThemer.h"
|
||||
#import "MaterialNavigationBar+ColorThemer.h"
|
||||
#import "supplemental/NavigationBarTypicalUseExampleSupplemental.h"
|
||||
|
||||
@interface NavigationBarTypicalUseExample ()
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
#import "MaterialNavigationBar.h"
|
||||
#import "MDCNavigationBarColorThemer.h"
|
||||
#import "MaterialNavigationBar+ColorThemer.h"
|
||||
#import "supplemental/NavigationBarTypicalUseExampleSupplemental.h"
|
||||
|
||||
@implementation NavigationBarWithBarItemsExample
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
#import "MaterialNavigationBar.h"
|
||||
#import "MDCNavigationBarColorThemer.h"
|
||||
#import "MaterialNavigationBar+ColorThemer.h"
|
||||
#import "supplemental/NavigationBarTypicalUseExampleSupplemental.h"
|
||||
|
||||
@implementation NavigationBarWithCustomFontExample
|
||||
|
||||
@ -17,6 +17,8 @@
|
||||
#import "MaterialColorScheme.h"
|
||||
#import "MaterialNavigationBar.h"
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
/**
|
||||
A color themer for MDCNavigationBar that implements the Material design color system mappings.
|
||||
*/
|
||||
|
||||
@ -0,0 +1,17 @@
|
||||
/*
|
||||
Copyright 2018-present the Material Components for iOS authors. All Rights Reserved.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
#import "MDCNavigationBarColorThemer.h"
|
||||
@ -17,6 +17,8 @@
|
||||
#import "MaterialNavigationBar.h"
|
||||
#import "MaterialTypographyScheme.h"
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
/**
|
||||
Used to apply a typography scheme to theme MDCNavigationBar.
|
||||
*/
|
||||
|
||||
@ -0,0 +1,17 @@
|
||||
/*
|
||||
Copyright 2018-present the Material Components for iOS authors. All Rights Reserved.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
#import "MDCNavigationBarTypographyThemer.h"
|
||||
@ -16,7 +16,7 @@
|
||||
|
||||
import XCTest
|
||||
import MaterialComponents.MaterialNavigationBar
|
||||
import MaterialComponents.MDCNavigationBarColorThemer
|
||||
import MaterialComponents.MaterialNavigationBar_ColorThemer
|
||||
|
||||
class NavigationBarColorThemerTests: XCTestCase {
|
||||
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
#import "MaterialButtonBar.h"
|
||||
#import "MaterialNavigationBar.h"
|
||||
#import "MDCNavigationBarTypographyThemer.h"
|
||||
#import "MaterialNavigationBar+TypographyThemer.h"
|
||||
|
||||
static const CGFloat kEpsilonAccuracy = 0.001f;
|
||||
|
||||
|
||||
@ -24,7 +24,7 @@
|
||||
#import "MDCFeatureHighlightColorThemer.h"
|
||||
#import "MDCFlexibleHeaderColorThemer.h"
|
||||
#import "MDCHeaderStackViewColorThemer.h"
|
||||
#import "MDCNavigationBarColorThemer.h"
|
||||
#import "MaterialNavigationBar+ColorThemer.h"
|
||||
#import "MDCPageControlColorThemer.h"
|
||||
#import "MDCProgressViewColorThemer.h"
|
||||
#import "MaterialSlider+ColorThemer.h"
|
||||
|
||||
@ -33,7 +33,7 @@
|
||||
#import "MDCFeatureHighlightColorThemer.h"
|
||||
#import "MDCFlexibleHeaderColorThemer.h"
|
||||
#import "MDCHeaderStackViewColorThemer.h"
|
||||
#import "MDCNavigationBarColorThemer.h"
|
||||
#import "MaterialNavigationBar+ColorThemer.h"
|
||||
#import "MDCPageControlColorThemer.h"
|
||||
#import "MDCProgressViewColorThemer.h"
|
||||
#import "MaterialSlider+ColorThemer.h"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user