Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Tabs] Update README for MDCTabBarView. (#7673)
Adds a small section about MDCTabBarView so it can be updated over time as
changes are made.
Closes #7672
- Loading branch information
Robert Moore
committed
Jun 21, 2019
1 parent
d0f3843
commit 2dea42f
Showing
3 changed files
with
106 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
> **_NOTE:_** This is currently in Beta. Features may change without warning and without a change in the Material | ||
> Components for iOS version number. | ||
### Importing MDCTabBarView | ||
|
||
`MDCTabBarView` is currently part of the MaterialComponentsBeta podspec. You may need to follow the [Material Components for iOS | ||
Beta integration guide](https://github.com/material-components/material-components-ios/blob/develop/contributing/beta_components.md) to configure | ||
your project to use `MDCTabBarView`. | ||
|
||
<!--<div class="material-code-render" markdown="1">--> | ||
#### Swift | ||
```swift | ||
import MaterialComponentsBeta.MaterialTabs_TabBarView | ||
``` | ||
|
||
#### Objective-C | ||
|
||
```objc | ||
#import "MaterialTabs+TabBarView.h" | ||
``` | ||
<!--</div>--> | ||
|
||
### Typical Use of MDCTabBarView | ||
|
||
<!--<div class="material-code-render" markdown="1">--> | ||
#### Swift | ||
```swift | ||
let tabBarView = MDCTabBarView() | ||
addSubview(tabBarView) | ||
|
||
// Configure constraints | ||
``` | ||
|
||
#### Objective-C | ||
|
||
```objc | ||
MDCTabBarView *tabBarView = [[MDCTabBarView alloc] init]; | ||
[self.view addSubview:tabBarView]; | ||
|
||
// Configure constraints | ||
``` | ||
<!--</div>--> | ||
### Migrating from MDCTabBar | ||
> **_NOTE:_** This will be updated as APIs are added and migrations are defined. |