Skip to content

Commit

Permalink
[Snackbar] Delete deprecated MDCSnackbarTypographyThemer.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 323632046
  • Loading branch information
bryanoltman authored and material-automation committed Jul 28, 2020
1 parent a142aae commit 9b23c34
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 206 deletions.
40 changes: 0 additions & 40 deletions components/Snackbar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ contain a text action, but no icons.
- [Typical use: display a message with an action](#typical-use-display-a-message-with-an-action)
- [Extensions](#extensions)
- [Color Theming](#color-theming)
- [Typography Theming](#typography-theming)

- - -

Expand Down Expand Up @@ -183,42 +182,3 @@ message.action = action;

There is currently no theing extension for MDCSnackbar.

<!-- Extracted from docs/typography-theming.md -->

### Typography Theming

You can theme an snackbar with your app's typography scheme using the TypographyThemer extension.

You must first add the Typography Themer extension to your project:

```bash
pod 'MaterialComponents/Snackbar+TypographyThemer'
```

<!--<div class="material-code-render" markdown="1">-->
#### Swift
```swift
// Step 1: Import the TypographyThemer extension
import MaterialComponents.MaterialSnackbar_TypographyThemer

// Step 2: Create or get a typography scheme
let typographyScheme = MDCTypographyScheme()

// Step 3: Apply the typography scheme to your component
MDCSnackbarTypographyThemer.applyTypographyScheme(typographyScheme)
```

#### Objective-C

```objc
// Step 1: Import the TypographyThemer extension
#import "MaterialSnackbar+TypographyThemer.h"

// Step 2: Create or get a typography scheme
id<MDCTypographyScheming> typographyScheme = [[MDCTypographyScheme alloc] init];

// Step 3: Apply the typography scheme to your component
[MDCSnackbarTypographyThemer applyTypographyScheme:colorScheme];
```
<!--</div>-->
1 change: 0 additions & 1 deletion components/Snackbar/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,3 @@ visible to the user.
## Extensions

- [Color Theming](color-theming.md)
- [Typography Theming](typography-theming.md)
36 changes: 0 additions & 36 deletions components/Snackbar/docs/typography-theming.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// limitations under the License.

#import "SnackbarExampleSupplemental.h"
#import "MaterialSnackbar+TypographyThemer.h"

static NSString *const kCellIdentifier = @"Cell";

Expand All @@ -24,7 +23,6 @@ - (void)setupExampleViews:(NSArray *)choices {
self.view.backgroundColor = [UIColor whiteColor];
[self.collectionView registerClass:[MDCCollectionViewTextCell class]
forCellWithReuseIdentifier:kCellIdentifier];
[MDCSnackbarTypographyThemer applyTypographyScheme:self.typographyScheme];
}

#pragma mark - UICollectionView
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 9b23c34

Please sign in to comment.