954 Commits

Author SHA1 Message Date
Jeff Verkoeyen
23de723d65 Bump the release. 2020-04-13 09:54:03 -04:00
Jeff Verkoeyen
b08ae64cad Bump the release. 2020-04-07 08:43:04 -04:00
Bryan Oltman
7c99769c68 # 107.5.0
This minor release includes several API additions to BottomSheet, Dialogs, and NavigationDrawer, along with a bug fix to Snackbar and improved Buttons documentation.

## New deprecations

MDCSemanticColorScheme's `init` was deprecated. Please use initWithDefaults: instead.

## New features

### Creating a Dialog with attributed text

```objc
NSAttributedString *attributedStr =
    [[NSAttributedString alloc] initWithString:@"attributed message" attributes:@{}];
self.attributedAlert = [MDCAlertController alertControllerWithTitle:@"title"
                                                  attributedMessage:attributedStr];
```

### Positioning subviews of a Dialog

The default insets of dialogs work well for the majority of use cases. Use the adjustable insets APIs to accommodate special use cases:

```objc
// Get a reference to the alert's view.
MDCAlertControllerView *alertView =
    (MDCAlertControllerView *)mdcAlertController.view;

// Set the insets of the alert's title icon:
alertView.titleIconInsets = UIEdgeInsetsMake(10.0f, 10.0f, 10.0f, 10.0f);

// Set the insets of the alert's title:
alertView.titleInsets = UIEdgeInsetsMake(10.0f, 10.0f, 10.0f, 10.0f);

// Set the insets of the alert's content:
alertView.contentInsets = UIEdgeInsetsMake(10.0f, 10.0f, 10.0f, 10.0f);

// Set the insets of the insets's actions:
alertView.actionsInsets = UIEdgeInsetsMake(10.0f, 10.0f, 10.0f, 10.0f);
```

## API changes

The following properties were added to `MDCAlertController`:
* `titleIconAlignment`
* `attributedMessage`

`MDCAlertController` also has a new initializer:
* `alertControllerWithTitle:attributedMessage:`

The following previously private `MDCAlertControllerView` properties are now exposed:
* `titleIconInset`
* `titleInsets`
* `contentInsets`
* `actionsInsets`
* `actionsHorizontalMargin`
* `actionsVerticalMargin`
* `accessoryViewVerticalInset`

## Component changes

### BottomSheet

* [Give MDCBottomSheetPresentationController an opt-in mechanism to propagate presentingViewController safeAreaInsets to the presentedViewController.](3b7dfcd48c) (Andrew Overton)

### Buttons

* [Internal change.](d11159f59c) (Jeff Verkoeyen)
* [Replace Buttons documentation](91595a819a) (Andrew Overton)

### Chips

* [Allow ending touch animation to proceed if chip is disabled on tap.](a23ac94062) (Bryan Oltman)

### Dialogs

* [Add support for attributed dialog message text](19a973ff44) (Vladimir Pomsztein)
* [Calculate title Insets independently of content insets (resolve scuba diff)](6b790fe2e1) (Galia Kaufman)
* [Calculate title Insets independently of content insets](144b2f61dc) (Galia Kaufman)
* [Moving static c helper functions outside of test classes.](8c7be049e9) (Galia Kaufman)
* [Publish Adjustable Insets API](a477732a95) (Galia Kaufman)
* [Publish Customize API](2a0d0febc5) (Galia Kaufman)
* [Remove the logic that sets accessibilityFrame manually on messageLabel.](db06c081c3) (Wenyu Zhang)
* [Rollback of PR #9877 to fix the message text disappearing on device rotation when voiceover is active.](75fc33afc2) (Galia Kaufman)
* [Support custom alignment for the title image (independent of title)](a4d690cb1c) (Galia Kaufman)
* [snapshot test for custom insets.](0c1910ec64) (Galia Kaufman)

### NavigationDrawer

* [Update `MDCBottomDrawerContainerViewController` to account for non-full screen presentation styles when the content is large enough to scroll to fullscreen, by adjusting the container and scroll view height rather than just adjusting the scroll view offset.](a7451b084c) (Jake Rockland)

### ProgressView

* [Adding default accessibility label](a8a560da42) (Yarden Eitan)

### Snackbar

* [Add additional nil checks in SnackBar display/dismissal](5a03fc07ab) (Andrew Overton)
* [Only use self.snackbarView for dismissing snackbars, not presenting them](1d30c3ee1f) (Andrew Overton)

### Tabs

* [Have an option in MDCTabBarView to not adjust for safe are insets (default is to adjust).](27d333c749) (Alvin Wong)

### TextFields

* [Update TextFields docs](d26c963b75) (Andrew Overton)

### schemes/Color

* [Mark init as deprecated.](086c1d590e) (Cody Weaver)

## Multi-component changes

* [Remove usage of `init` within MDC.](fdf87c5995) (Cody Weaver)

PiperOrigin-RevId: 303812657
2020-03-30 13:43:11 -07:00
Bryan Oltman
d9340a2952 Internal change
PiperOrigin-RevId: 303789586
2020-03-30 13:40:59 -07:00
Bryan Oltman
7dace35f69 Update version to 107.5.0 2020-03-30 16:18:41 -04:00
Bryan Oltman
3e471a67d0 Bumped version number to 108.0.0. 2020-03-30 15:39:24 -04:00
Yarden Eitan
a8a560da42 [ProgressView] Adding default accessibility label
PiperOrigin-RevId: 302624787
2020-03-24 02:38:42 -07:00
Bryan Oltman
0062096ee1 Bump version to 107.4.0, update release notes 2020-03-23 13:54:13 -04:00
Nobody
58a181306f [ProgressView] Adding default accessibility label
PiperOrigin-RevId: 301788026
2020-03-19 04:46:12 -07:00
Yarden Eitan
8fe34d13e0 [ProgressView] Adding default accessibility label
PiperOrigin-RevId: 301786524
2020-03-19 04:33:10 -07:00
Eric Lee
608694e260 [Material][Availability] Migrates Ripple to MDCAvailability.
PiperOrigin-RevId: 301671613
2020-03-18 14:42:27 -07:00
Wenyu Zhang
ae5515ea4a [ProgressView] Remove MDCProgressViewMotionSpec.
PiperOrigin-RevId: 301417528
2020-03-17 11:38:36 -07:00
Jeff Verkoeyen
3f68089cc2 Bump the release. 2020-03-16 09:43:41 -04:00
Andrew Overton
06cef309d3 Bumped version number to 107.2.0. 2020-03-09 12:49:52 -04:00
Cody Weaver
5e9c0ff782 Bumped version number to 107.1.0. 2020-03-03 08:51:32 -08:00
Cody Weaver
fa72a5317f Bumped version number to 107.0.0. 2020-02-28 14:06:12 -05:00
Cody Weaver
55aae34dea
[Dialogs] Remove DialogThemer from Podspec (#9812)
In #9776 we removed the DialogThemer but did not remove it from the CocoaPods podspec file. This causes pod validation to fail rather than reverting #9776 we should remove this target from the podspec.
2020-02-27 18:34:10 -05:00
Cody Weaver
7e98293c13 Bumped version number to 106.0.0. 2020-02-25 17:31:53 -05:00
Andrew Overton
beca30be4a
[TextControls] add filled text areas (#9770)
This PR adds the TextControl filled text areas, as well as their theming extensions, and a bunch of unit tests. Snapshot tests to follow.

Related to #9407.
2020-02-20 16:10:53 -05:00
Andrew Overton
79d0ba0231
Add outlined text areas (#9771)
This PR adds the TextControl outlined text areas, as well as their theming extensions, and a bunch of unit tests. Snapshot tests to follow.

Related to #9407.
2020-02-20 15:37:30 -05:00
Andrew Overton
2c1669718c
Add first pass of unit tests for MDCBaseTextArea (#9754)
This PR adds some initial unit tests to MDCBaseTextArea.

Related to #9407.
2020-02-20 11:05:46 -05:00
Jeff Verkoeyen
efc2389643 Merge branch 'release-candidate' into develop 2020-02-20 00:17:00 -05:00
Jeff Verkoeyen
f863392c73 Bump release. 2020-02-19 17:25:00 -05:00
Jeff Verkoeyen
b2306907fe merged release-candidate 2020-02-19 17:10:56 -05:00
Jeff Verkoeyen
e445f4af4b Bump the version correctly. 2020-02-19 16:23:23 -05:00
Jeff Verkoeyen
9dcf356ef3 Bump the release. 2020-02-19 16:19:24 -05:00
Jeff Verkoeyen
d6009552b2 Revert "Revert all commits to stable since v104.0.1."
This reverts commit c205cc4d2df00050349e689c9c83314ade138e83.
2020-02-19 16:15:09 -05:00
Jeff Verkoeyen
c205cc4d2d Revert all commits to stable since v104.0.1.
These commits were accidentally added to stable due to a `git pull` command.

```
git reset --hard v104.0.1
git reset --soft e2252009a850ea6d5e2a02efaa2add2f7f295aac
git commit
```
2020-02-19 13:55:16 -05:00
Yarden Eitan
3882b62bd0 Bumped version number to 105.0.0. 2020-02-19 13:57:04 +02:00
Andrew Overton
b78f7c55d9 Remove unneeded subspec (#9748)
This change removes an empty subspec that was causing pod lib lint to fail.
Closes #9747.
2020-02-19 13:57:03 +02:00
Bryan Oltman
538da36f9a Fix invalid podspec (#9745) 2020-02-19 13:57:03 +02:00
Bryan Oltman
8cd6794739 [Material][Availability] Migrates Flexible Header to MDCAvailability. (#9744)
[Material][Availability] Migrates Flexible Header to MDCAvailability.
2020-02-19 13:57:03 +02:00
Andrew Overton
f6a108a803 [Material][Availability] Migrates Schemes to MDCAvailability (#9736)
Original CL: cl/293702425
2020-02-19 13:57:03 +02:00
Bryan Oltman
11e442e37f [Material][Availability] Migrates Ink to MDCAvailability. (#9741)
[Material][Availability] Migrates Ink to MDCAvailability.
2020-02-19 13:57:03 +02:00
Bryan Oltman
3b700868bb [Material][Availability] Migrates Snackbar to MDCAvailability. (#9739)
[Material][Availability] Migrates Snackbar to MDCAvailability.
2020-02-19 13:57:03 +02:00
Andrew Overton
ea6cc86451 [private] Make private/color use availability (#9738)
Original CL: cl/293702453
2020-02-19 13:57:03 +02:00
Bryan Oltman
d9d4c8db5c [Material][Availability] Migrates Action sheet to MDCAvailability. (#9733)
[Material][Availability] Migrates Action sheet to MDCAvailability.
2020-02-19 13:57:03 +02:00
Andrew Overton
12dbc2a9ce [Material][Availability] Migrates Text Controls to MDCAvailability (#9720)
This PR addresses the failures in https://github.com/material-components/material-components-ios/pull/9719, which was copybara'd from [cl/293702448](http://cl/293702448)
2020-02-19 13:57:02 +02:00
Andrew Overton
be0228b5f1 Remove test spec (#9718)
https://github.com/material-components/material-components-ios/pull/9711 causes the library to fail pod lib lint validations because there are currently no source files in the test spec. This will of course change very soon but in case there's a release before it does we should land this PR.

Related to #9407.
2020-02-19 13:57:02 +02:00
Andrew Overton
4793060670 [TextControls] Changes from text-area-feature-branch with additional podspec and BUILD file changes (#9711)
Because CI wasn't working earlier this week I merged the initial text area PRs (https://github.com/material-components/material-components-ios/pull/9682 and https://github.com/material-components/material-components-ios/pull/9684) into a [feature branch](https://github.com/material-components/material-components-ios/tree/text-area-feature-branch) in the main repo. This PR contains those changes, as well as a commit to update the BUILD file and podspec (3da2803), a commit that makes it compile (6a06594), and a commit to run clang (078cd70). The changes in these last three commits have not been reviewed, unlike the ones from the PRs into the feature branch.

Related to #9407.
2020-02-19 13:57:02 +02:00
Randall Li
b3f784f11e
[Material][Availability] Migrates Collections to MDCAvailability. (#9712)
[Material][Availability] Migrates Collections to MDCAvailability.
2020-02-18 13:42:15 -05:00
Randall Li
d19b024d32
[Material][Availability] Migrates Thumb Track to MDCAvailability. (#9714)
[Material][Availability] Migrates Thumb Track to MDCAvailability.
2020-02-18 13:41:59 -05:00
Randall Li
7e4f9f61a9
[Material][Availability] Migrates Overlay Window to MDCAvailability. (#9730)
[Material][Availability] Migrates Overlay Window to MDCAvailability.
2020-02-18 13:41:38 -05:00
Andrew Overton
c22493567e
Remove unneeded subspec (#9748)
This change removes an empty subspec that was causing pod lib lint to fail.
Closes #9747.
2020-02-14 16:27:39 -05:00
Bryan Oltman
63867a371e
Fix invalid podspec (#9745) 2020-02-14 15:15:33 -05:00
Bryan Oltman
d962e50cf2
[Material][Availability] Migrates Flexible Header to MDCAvailability. (#9744)
[Material][Availability] Migrates Flexible Header to MDCAvailability.
2020-02-14 13:20:12 -05:00
Andrew Overton
ae6d6d9a90
[Material][Availability] Migrates Schemes to MDCAvailability (#9736)
Original CL: cl/293702425
2020-02-14 12:53:26 -05:00
Bryan Oltman
f168dd2806
[Material][Availability] Migrates Ink to MDCAvailability. (#9741)
[Material][Availability] Migrates Ink to MDCAvailability.
2020-02-14 12:52:23 -05:00
Bryan Oltman
1a221fe8b0
[Material][Availability] Migrates Snackbar to MDCAvailability. (#9739)
[Material][Availability] Migrates Snackbar to MDCAvailability.
2020-02-14 12:51:47 -05:00
Andrew Overton
1cc8bb781d
[private] Make private/color use availability (#9738)
Original CL: cl/293702453
2020-02-14 12:21:53 -05:00