Skip to content

Commit 3f82e5f

Browse files
Janette Jamesmaterial-automation
Janette James
authored andcommitted
Delete TabBarViewTheming
PiperOrigin-RevId: 714301345
1 parent 5c9ba05 commit 3f82e5f

File tree

5 files changed

+0
-391
lines changed

5 files changed

+0
-391
lines changed

components/Tabs/README.md

-56
Original file line numberDiff line numberDiff line change
@@ -149,62 +149,6 @@ Tab bars contain tab bar items with optional icons and text labels. Tab bar item
149149
---------------------- | ------------------------------- | ------------------------------------------------------------ | -------------
150150
**Color** | `selectionIndicatorStrokeColor` | `-setSelectionIndicatorStrokeColor:` <br> `-selectionIndicatorStrokeColor` | On primary color
151151
152-
## Theming
153-
154-
Tabs supports Material Theming using a Container Scheme. To learn more about theming extensions, see [here](https://github.com/material-components/material-components-ios/blob/develop/docs/theming.md). Below is a screenshot of an `MDCTabBarView` with the Material Design Shrine theme:
155-
156-
![Shrine tab with Home, Settings, Email and Search text labels and icons](docs/assets/shrine-tabs.png)
157-
158-
### Tabs theming example
159-
160-
To make use of tabs theming install the tabs theming extensions with Cocoapods. First, add the following line to your `Podfile`:
161-
162-
```bash
163-
pod MaterialComponents/Tabs+TabBarViewTheming
164-
```
165-
166-
<!--{: .code-renderer.code-renderer--install }-->
167-
168-
Then Run the installer:
169-
170-
```bash
171-
pod install
172-
```
173-
174-
Next, import the Tabs theming target, and call the correct theming method.
175-
176-
<!--<div class="material-code-render" markdown="1">-->
177-
#### Swift
178-
179-
```swift
180-
import MaterialComponents.MaterialTabs_TabBarViewTheming
181-
...
182-
183-
// Create an MDCTabbarView
184-
let tabBar = MDCTabBarView()
185-
// Create or use your app's Container Scheme
186-
let containerScheme = MDCContainerScheme()
187-
// Theme the tab bar with either Primary Theme
188-
tabBar.applyPrimaryTheme(withScheme: containerScheme)
189-
// Or Surface Theme
190-
tabBar.applySurfaceTheme(withScheme: containerScheme)
191-
```
192-
193-
#### Objective-C
194-
195-
```objc
196-
// Import the Tabs Theming Extensions header
197-
#import <MaterialComponents/MaterialTabs+TabBarViewTheming.h>
198-
...
199-
// Create or use your app's Container Scheme
200-
MDCContainerScheme *containerScheme = [[MDCContainerScheme alloc] init];
201-
// Theme the tab bar with either Primary Theme
202-
[self.tabBar applyPrimaryThemeWithScheme:containerScheme];
203-
// Or Surface Theme
204-
[self.tabBar applySurfaceThemeWithScheme:containerScheme];
205-
```
206-
<!--</div>-->
207-
208152
## Migrating from legacy tabs
209153
210154
Below are some of the differences between `MDCTabBarView` and its predecessor, `MDCTabBar`. If you have been using `MDCTabBar`, make note of the following changes.

components/Tabs/src/TabBarViewTheming/MDCTabBarView+MaterialTheming.h

-38
This file was deleted.

components/Tabs/src/TabBarViewTheming/MDCTabBarView+MaterialTheming.m

-81
This file was deleted.

components/Tabs/src/TabBarViewTheming/MaterialTabs+TabBarViewTheming.h

-16
This file was deleted.

0 commit comments

Comments
 (0)