24 Commits

Author SHA1 Message Date
Jeff Verkoeyen
b10ea77f84 Bump the version. 2018-10-24 11:03:54 -04:00
Jeff Verkoeyen
30fe5bb319 Merge branch 'release-candidate' into develop 2018-10-23 09:29:34 -04:00
Yarden Eitan
5dafdbaa86
graduate navigation drawer from Beta to Ready (#5470)
This PR is the last step in graduating the Navigation Drawer component from Beta to Ready.

We have resolved all the outstanding issues in the Navigation Drawer Project here: https://github.com/material-components/material-components-ios/projects/85 and hotlist: 1230549 .
The only outstanding issue is the unit tests ( #5466 , #5465 ) which were approved and are pending due to GitHub issues causing CI not to run.

We are essentially migrating here the NavigationDrawer component from the MaterialComponentsAlpha podspec to the MaterialComponents podspec so it can be used publicly using the normal means of installing our Pod.

This PR is blocked and can land once #5466 and #5465 land.

Closes #5333
2018-10-23 01:26:46 -04:00
Jeff Verkoeyen
21eb446963 Bump the version to 67.2.0. 2018-10-22 16:27:46 -04:00
rami-a
70457a398a
[NavigationDrawer] Add Color Themer support (#5458)
### The problem

BottomDrawer previously had no color themer support

### The fix

This change adds a color themer for BottomDrawer. Additionally this adds unit tests and updates the example to use the color themer. The guidelines indicate the content and header should utilize the semantic surface color, so that is what the themer applies to the BottomDrawer. 

**Note:** The drawer should be configured with its header and content ViewControllers before applying the theme.

### Related issues

Closes #4910 

### Code snippet

#### Swift
```
    let bottomDrawerViewController = MDCBottomDrawerViewController()
    bottomDrawerViewController.contentViewController = contentViewController
    bottomDrawerViewController.headerViewController = headerViewController
    MDCBottomDrawerColorThemer.applySemanticColorScheme(colorScheme,
                                                        toBottomDrawer: bottomDrawerViewController)
```

#### ObjC
```
MDCBottomDrawerViewController *bottomDrawer = [[MDCBottomDrawerViewController alloc] init];
bottomDrawer.contentViewController = contentViewController
bottomDrawer.headerViewController = headerViewController
[MDCBottomDrawerColorThemer applySemanticColorScheme:self.colorScheme
                                      toBottomDrawer:bottomDrawer];
```
2018-10-19 15:36:58 -04:00
Yarden Eitan
312dc31ee1 Bumped version number to 67.1.0. 2018-10-17 10:23:49 -04:00
Ian Gordon
379383a74f Bumped version number to 67.0.0 2018-10-11 12:28:38 -04:00
Cody Weaver
b7a8d9d74f
[ActionSheets] Fix podspec for global themer
### Context
In #5345 the podspec is wrong, it depends on the system schemes instead of the other themers.
### The fix
Update the podspec to match other components and depend on other subspecs instead of schemes.
2018-10-10 10:27:13 -04:00
Cody Weaver
85718988e5
[ActionSheet] Add action sheet themer (#5345)
### Context
On of the requirements for new components is to have a _themer_ that applies the typography and color schemes as well as any other properties that are needed to the component.
### The problem
Action sheet didn't have one it just had a color and typography themer that were separate.
### The fix
This PR adds a component themer that applies the typography and color schemes to the component.
2018-10-09 16:19:32 -04:00
Ian Gordon
8185409c69 Bumped version number to 66.0.0. 2018-10-04 13:43:15 -04:00
Randall Li
b3f8d43f44 Bumped version number to 65.0.0. 2018-09-26 14:24:19 -04:00
Cody Weaver
b52096c7e8
[ActionSheet] Add color themer (#5207)
### The problem

ActionSheet previously didn't have a color themer at all.

### The fix

This adds a color themer to ActionSheet, as well as test to test these use cases

### Related issues

#5039 

### Code snippet

#### Swift
```
let actionSheet = MDCActionSheetController()
MDCActionSheetColorThemer.applySemanticColorScheme(colorScheme, to: actionSheet)
```

#### ObjC
```
MDCActionSheetController *actionSheet = [[MDCActionSheetController alloc] init];
[MDCActionSheetColorThemer applySemanticColorScheme:self.colorScheme
                            toActionSheetController:actionSheet];
```

### Screenshots
| Before | After |
| ------ | ----- |
|![simulator screen shot - iphone x - 2018-09-24 at 09 17 13](https://user-images.githubusercontent.com/7131294/45954309-ae216500-bfda-11e8-8114-eb971ce36567.png)|![simulator screen shot - iphone x - 2018-09-24 at 09 16 10](https://user-images.githubusercontent.com/7131294/45954316-b2e61900-bfda-11e8-9e5a-16ff2e65cf7c.png)|

_Screenshot generated with_
```
self.colorScheme.surfaceColor = .yellow
self.colorScheme.onSurfaceColor = .magenta
```
2018-09-24 15:25:47 -04:00
featherless
d238c86d47
[CocoaPods] Remove our tests podspec in favor of official test_spec targets. (#5204)
See docs for test_spec here: https://blog.cocoapods.org/CocoaPods-1.3.0/

test_spec is an official CocoaPods mechanism for associating tests with a component. tests_spec has several advantages over our prior "tests as a podspec" hack:

- We can finally run individual tests from Xcode's inline green "test" button that shows up alongside each test in the editor.
- Tests can import private header files from components from .h files in the test target (because tests are no longer treated as frameworks). We were not previously able to do this, making it impossible to create .h/.m files that were shared across multiple test .m files.
- We no longer need MDCUnitTests - everything lives in the MDCCatalog target.
- The tests/ folder now appears as a sub-group for each component in the MaterialComponents development pod group. This will have a big impact on day-to-day workflow. Previously our tests lived in a sibling group to our components, making it somewhat difficult to navigate back-and-forth in Xcode.
- pod lib lint is now able to run our unit tests.
- Our tests can now explicitly declare their dependencies.

Some caveats:

- Each component now needs a test_spec subspec definition. This is a minor detail and one that doesn't add much extra work when creating a new component (we continue to just copy the existing templates).
- When adding a new test_spec, we also need to add the test_spec to our MDCCatalog Podfile under the `:testspecs` list. This is a bit annoying, but only happens when new components are created (very infrequent). This is a good case of the cost here being outweighed by the benefits above (which affect our daily workflow).

## Screenshot

<img width="405" alt="screen shot 2018-09-22 at 9 40 17 pm" src="https://user-images.githubusercontent.com/45670/45920647-33f4c180-beb0-11e8-94bc-88f3450c9e0a.png">
2018-09-24 21:54:54 +03:00
Randall Li
30a3d9ce4b Bumped version number to 64.0.0. 2018-09-20 13:32:42 -04:00
Jeff Verkoeyen
ff51dd49d9 Bump the release. 2018-09-12 09:16:42 -04:00
Jeff Verkoeyen
95e62040dd Bump to minor. 2018-09-07 16:36:09 -04:00
Jeff Verkoeyen
a1daebd783 Bump the release. 2018-09-07 12:58:22 -04:00
Jeff Verkoeyen
944be857d4 Bump the release. 2018-09-05 09:22:16 -04:00
Jeff Verkoeyen
1d2845b582 Merge branch 'release-candidate' into develop 2018-09-05 08:58:53 -04:00
Cody Weaver
05d4be9e43
[ActionSheet] Add typography themer (#4966)
Add a typography themer to the Action Sheet component.
2018-08-30 19:33:34 -04:00
Yarden Eitan
c959322480 bumped version number to 62.0.0 2018-08-30 18:11:49 -04:00
Cody Weaver
1f4b8e0789
[ActionSheet] Add Action sheet (#4830)
This PR adds the Action Sheet component for the iOS platform. In a later PR theming will be added and then an App Bar to support full screen.
2018-08-28 06:16:23 -04:00
guylivneh
b2d17e1ed6 [NavigationDrawer] Adding the navigation drawer component (#4886)
Adding the navigation drawer component that adds a presentation controller for showing UIViewControllers as a bottom drawer.

History of the component (last CL submitted for it): cl/209765207
Design doc: go/mdc-ios-navigation-drawer

This component will be the first alpha component in this repo, this means that it can still change and will not be included as part of the podspec at first.
2018-08-27 16:00:40 -04:00
featherless
bb194fa168
Introduce an Alpha program for MDC components. (#4892)
The intent of the Alpha program is to provide a place for component code to land that may not be fully ready for production, but for which we still want active collaboration with the team and potentially some early adoption with select clients.

Any new component that we implement will first land in the MaterialComponentsAlpha.podspec as a subspec, similar to how components are defined in the MaterialComponents.podspec.

Alpha components will appear in MDCCatalog and MDCDragons along with all of their examples and unit tests after a `pod install`. From the point of view of our catalogs, these components are just like any other.

From the point of view of the public, Alpha components are not made available as part of our published pod. External clients that wish to use an Alpha component in their app will need to manually clone the repo and add the code to their project. This is by design.

Alpha components are not subject to our deprecation policy and we will not provide behavioral flags for gradual migration of runtime behaviors.

Changes to Alpha components will have **no** effect on our release version numbers.

Once a component is ready for general production use, we will graduate the component to the MaterialComponents.podspec. At this point the component will be subject to all of the processes and expectations that any other production component.
2018-08-24 14:55:42 -04:00