Skip to content

Commit

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

# ActionSheet

mdc.subspec "ActionSheet+ColorThemer" 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/Color"

extension.test_spec 'UnitTests' do |unit_tests|
unit_tests.source_files = [
"components/#{extension.base_name.split('+')[0]}/tests/unit/#{extension.base_name.split('+')[1]}/*.{h,m,swift}",
"components/#{extension.base_name.split('+')[0]}/tests/unit/#{extension.base_name.split('+')[1]}/supplemental/*.{h,m,swift}"
]
unit_tests.resources = "components/#{extension.base_name.split('+')[0]}/tests/unit/#{extension.base_name.split('+')[1]}/resources/*"
end
end

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"
Expand Down
45 changes: 0 additions & 45 deletions components/ActionSheet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ the screen and displays actions a user can take.
- [Set `-scrimAccessibilityHint`](#set-`-scrimaccessibilityhint`)
- [Set `-scrimAccessibilityTraits`](#set-`-scrimaccessibilitytraits`)
- [Unsupported](#unsupported)
- [Color Theming](#color-theming)
- [Typography Theming](#typography-theming)

- - -
Expand Down Expand Up @@ -331,50 +330,6 @@ actionSheet.scrimAccessibilityTraits = UIAccessibilityTraitButton;

## Unsupported

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

### Color Theming

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

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

```bash
pod `MaterialComponentsBeta/ActionSheet+ColorThemer`
```

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

// Step 2: Create or get a color scheme
let colorScheme = MDCSemanticColorScheme()

// Step 3: Apply the color scheme to your component
let actionSheet = MDCActionSheetController()
MDCActionSheetColorThemer.applySemanticColorScheme(colorScheme, to: actionSheet)
```

#### Objective-C

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

// Step 2: Create or get a color scheme
id<MDCColorScheming> colorScheme = [[MDCSematnicColorScheme alloc] init];

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

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

### Typography Theming

You can theme an Action Sheet with your app's typography scheme using the TypographyThemer extension.
Expand Down
39 changes: 0 additions & 39 deletions components/ActionSheet/docs/color-theming.md

This file was deleted.

36 changes: 0 additions & 36 deletions components/ActionSheet/src/ColorThemer/MDCActionSheetColorThemer.h

This file was deleted.

45 changes: 0 additions & 45 deletions components/ActionSheet/src/ColorThemer/MDCActionSheetColorThemer.m

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit e4805f0

Please sign in to comment.