Skip to content

Commit

Permalink
[ActionSheet] Delete MDCActionSheetTypographyThemer
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 321590607
  • Loading branch information
andrewoverton authored and material-automation committed Jul 16, 2020
1 parent eb324d0 commit a5d83de
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 178 deletions.
11 changes: 0 additions & 11 deletions MaterialComponentsBeta.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,6 @@ Pod::Spec.new do |mdc|

# See MaterialComponents.podspec for the subspec structure and template.


# ActionSheet

mdc.subspec "ActionSheet+TypographyThemer" do |extension|
extension.ios.deployment_target = '9.0'
extension.public_header_files = "components/#{extension.base_name.split('+')[0]}/src/#{extension.base_name.split('+')[1]}/*.h"
extension.source_files = "components/#{extension.base_name.split('+')[0]}/src/#{extension.base_name.split('+')[1]}/*.{h,m}", "components/#{extension.base_name.split('+')[0]}/src/#{extension.base_name.split('+')[1]}/private/*.{h,m}"
extension.dependency "MaterialComponents/#{extension.base_name.split('+')[0]}"
extension.dependency "MaterialComponents/schemes/Typography"
end

mdc.subspec "BottomNavigation" do |component|
component.ios.deployment_target = '9.0'
component.public_header_files = "components/#{component.base_name}/src/MDCBottomNavigationBarController.h", "components/#{component.base_name}/src/MaterialBottomNavigationBeta.h"
Expand Down
46 changes: 0 additions & 46 deletions components/ActionSheet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ the screen and displays actions a user can take.
- [Set `-scrimAccessibilityLabel`](#set-`-scrimaccessibilitylabel`)
- [Set `-scrimAccessibilityHint`](#set-`-scrimaccessibilityhint`)
- [Set `-scrimAccessibilityTraits`](#set-`-scrimaccessibilitytraits`)
- [Unsupported](#unsupported)
- [Typography Theming](#typography-theming)

- - -

Expand Down Expand Up @@ -326,47 +324,3 @@ MDCActionSheetController *actionSheet = [MDCActionSheetController alloc] init];
actionSheet.scrimAccessibilityTraits = UIAccessibilityTraitButton;
```
<!--</div>-->


## Unsupported

### Typography Theming

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

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

```bash
pod `MaterialComponentsBeta/ActionSheet+TypographyThemer`
```

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

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

// Step 3: Apply the color scheme to your component
let actionSheet = MDCActionSheetController()
MDCActionSheetTypographyThemer.applyTypographyScheme(typographyScheme, to: actionSheet)
```

#### Objective-C

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

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

// Step 3: Apply the color scheme to your component
MDCActionSheetController *actionSheet = [[MDCActionSheetController alloc] init];
[MDCActionSheetTypographyThemer applyTypographyScheme:self.typographyScheme
toActionSheetController:actionSheet];
```
<!--</div>-->

5 changes: 0 additions & 5 deletions components/ActionSheet/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,3 @@ Material UIAlertController please see the `MDCAlertController` class.
- [Theming](theming.md)

- [Accessibility](accessibility.md)

## Unsupported

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

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit a5d83de

Please sign in to comment.