171 Commits

Author SHA1 Message Date
Bryan Oltman
da4b8f7c7f Fix mdc_elevationDidChangeBlock block parameter types for Xcode 12
PiperOrigin-RevId: 331843566
2020-09-15 13:39:15 -07:00
Jeff Verkoeyen
eb82984224 Internal change
PiperOrigin-RevId: 331764642
2020-09-15 07:31:56 -07:00
Yarden Eitan
8d7bc88a11 [Ink] Official deprecation of Ink.
Please use the Ripple component.

PiperOrigin-RevId: 329771765
2020-09-02 13:07:40 -07:00
Jeff Verkoeyen
d7ff705337 Drop support for iOS 9.
PiperOrigin-RevId: 326015653
2020-08-11 07:21:40 -07:00
Andrew Overton
0448a330e3 Replace tabs docs
This PR replaces the tabs docs for material.io.

Closes https://github.com/material-components/material-components-ios/pull/10055

COPYBARA_INTEGRATE_REVIEW=https://github.com/material-components/material-components-ios/pull/10055 from andrewoverton:material-io-tabs 4b9dec39c00803ab6c32846c7557523df4252fe3
PiperOrigin-RevId: 325487657
2020-08-07 12:41:57 -07:00
Andrew Overton
07c46757cc Replace material.io API doc links with links to the relevant header f…
This PR replaces API links containing "/api-docs/" with links to suitable header files in GitHub because the site previously linked to is being taken down and replaced with something that won't handle API docs.

Closes https://github.com/material-components/material-components-ios/pull/10045

COPYBARA_INTEGRATE_REVIEW=https://github.com/material-components/material-components-ios/pull/10045 from andrewoverton:replace-mio-api-docs-with-github-links 0d6e56cc11d0c147366a4f6cde829d8b51567ecc
PiperOrigin-RevId: 323424362
2020-07-27 13:09:23 -07:00
Andrew Overton
b205164477 Delete obsolete markdown files
As I've gone through and replaced all the READMEs I haven't always been good at deleting the markdown files that were stitched together to make the old READMEs. This PR removes all the ones I forgot to remove. All the relevant material in these files is already in the new READMEs, so we're not losing anything by doing this.

Closes https://github.com/material-components/material-components-ios/pull/10029

COPYBARA_INTEGRATE_REVIEW=https://github.com/material-components/material-components-ios/pull/10029 from andrewoverton:delete-unused-docs 65ea55253af300ea7a4c13ea4ce14976097a6253
PiperOrigin-RevId: 318079032
2020-06-24 09:31:01 -07:00
Jeff Verkoeyen
f4b7c8eb2c [Cards] Add example snapshot tests.
PiperOrigin-RevId: 309247001
2020-04-30 10:06:12 -07:00
Wenyu Zhang
a3381717f7
Fix the bazel BUILD files and snapshot that were restored unintentionally.(#9983) 2020-04-29 11:00:00 -04:00
Randall Li
0100cfe414 [MDC-iOS/BottomSheet] Fix dismissOnDraggingDownSheet behavior
The bottom sheet incorrectly allowed the sheet to be drag dismissed when `dismissOnDraggingDownSheet` was set to NO.

This change permits the gesture to dismiss to begin but prevents it from actually closing the sheet.

https://github.com/material-components/material-components-ios/issues/9723

Closes https://github.com/material-components/material-components-ios/pull/9885

PiperOrigin-RevId: 307802500
2020-04-22 06:21:26 -07:00
Andrew Overton
54723a16a4 [Cards] Replace Cards documentation
This PR replaces the Cards documentation with different Cards documentation. To preview the docs, see [here](https://github.com/andrewoverton/material-components-ios/tree/cards-docs/components/Cards).

Closes https://github.com/material-components/material-components-ios/pull/9965

COPYBARA_INTEGRATE_REVIEW=https://github.com/material-components/material-components-ios/pull/9965 from andrewoverton:cards-docs 140637c2f4f7c24ba25099352c5f9c066d84035b
PiperOrigin-RevId: 306670257
2020-04-15 10:34:23 -07:00
Jeff Verkoeyen
8abbb099a9 Delete all bazel support.
We no longer support bazel.

This PR deletes everything related to bazel support from our repo.

Closes https://github.com/material-components/material-components-ios/pull/9968

PiperOrigin-RevId: 306227127
2020-04-13 07:13:47 -07:00
Bryan Oltman
395ad9b395
[Catalog] Remove traitCollection overrides from examples. (#9851)
It's not clear to me why these existed – I can't see any visual difference before vs. after on an iPad in portrait orientation.

Fixes #7683
2020-03-05 17:16:59 -05:00
Randall Li
b677a3629e
[Material][Availability] Migrates cards to MDCAvailability. (#9728)
[Material][Availability] Migrates cards to MDCAvailability.
2020-02-14 15:15:09 -05:00
featherless
162a063bda
[bazel] Remove all unused mdc_objc_library loads. (#9376)
Found by searching for all references to `\bmdc_objc_library` and removing load statements from files that only returned one result.

Clean up as part of https://github.com/material-components/material-components-ios/issues/9363
2020-01-02 14:34:36 -05:00
Bryan Oltman
900ace5c7b
[Cards] Properly use headings for 'Swift' and 'Objective C' above sample code (#9353)
Updates code sample headings for consistency with other documentation.
2019-12-30 12:24:21 -05:00
Bryan Oltman
d658b7cced
[Cards] Remove leading space before Swift and ObjC example headers (#9295)
Removes leading spaces before "Swift" and "Objective C" to ensure proper layout on material.io/develop/ios/components/cards (related to https://github.com/material-components/material-components-ios/pull/9294)
2019-12-16 14:15:57 -05:00
Bryan Oltman
08a2b20d70
[Cards] Remove references to Themer from README (#9261)
Card Themer classes were deleted, and our documentation should be updated to reflect that.

Fixes #9197
2019-12-13 10:28:51 -05:00
Bryan Oltman
f44e5d679d
[Cards] Delete Themer classes (#9197)
Deletes the deprecated Card shape and color themers. These files were removed from .podspec and BUILD files in https://github.com/material-components/material-components-ios/pull/9141

Fixes #9098
Fixes #9097
Fixes #9096
Fixes #9095
2019-12-09 12:41:31 -05:00
Andrew Overton
394a518d3e
[Cards] Deprecate MDCCardThemer (#9054)
This PR deprecates MDCCardThemer, MDCCardTheming, and MDCCardScheme, and updates docs.
Related to #9052.
Related to #9067.
Related to #9066.
Related to #9065.
2019-12-06 15:41:00 -05:00
Andrew Overton
1a067127a2
Delete old docs (#9163)
Tangentially related #9066
2019-12-06 15:40:32 -05:00
Bryan Oltman
4e41462438
[Cards] Migrate MDCCardsColorThemer to theming extensions (#9141)
Migrating Cards Themer code to theming extensions as part of the deprecation and deletion of `MDCCardsColorThemer`.

Part of #9098, #9097, #9096, and #9095
2019-12-06 10:24:00 -05:00
Bryan Oltman
0c529fd53d
[Cards] Deprecate MDCCardThemer (#9108)
Deprecates MDCCardThemer and silences deprecation warnings.

Part of #9095, #9096, #9097, and #9098.
2019-12-05 17:14:07 -05:00
Bryan Oltman
285c8898c0
[Cards] Deprecate MDCCardsColorThemer (#9078) 2019-12-04 20:35:15 -05:00
featherless
be33d3196a
[Cards] Fix bug in the "Typical use" example where the image would not appear. (#8943)
The image was not appearing because the card using a custom image view that was trying to inherit the mask of the card's shape layer.

This change removes the custom image view and instead applies custom corner radii to the image view directly. This is not ideal, but is an improvement. Ideally, the card would provide a content view that is clipped to the card's shape. It's not possible to enable clipping on the card itself because this causes the shadow to go away.

| Before | After |
|:--|:--|
| ![Simulator Screen Shot - iPhone Xʀ - 2019-11-15 at 12 57 37](https://user-images.githubusercontent.com/45670/68964703-08b1ed80-07a8-11ea-978c-2c71145ca8c3.png) | ![Simulator Screen Shot - iPhone Xʀ - 2019-11-15 at 12 56 52](https://user-images.githubusercontent.com/45670/68964693-02bc0c80-07a8-11ea-9d3d-644b81aebee6.png) |

Part of https://github.com/material-components/material-components-ios/issues/8861
2019-11-15 16:44:28 -05:00
featherless
f6f2ff2821
[Cards] Make the "Typical use" example title label an a11y heading. (#8945)
Closes https://github.com/material-components/material-components-ios/issues/8861
2019-11-15 14:06:21 -05:00
featherless
28b838cc9d
[Cards] Make the shaped collection cell an accessibility button. (#8901)
Fixes https://github.com/material-components/material-components-ios/issues/8866
2019-11-15 11:54:13 -05:00
featherless
ae7db6f03d
[Cards] Make the Shaped Edit/Reorder example class/files match the name of the example. (#8899)
Cleanup as part of https://github.com/material-components/material-components-ios/issues/8866
2019-11-15 11:00:50 -05:00
featherless
8b9f0bbea6 [Cards] Deprecate the ShapeThemer extension. (#8697)
Part of https://github.com/material-components/material-components-ios/issues/8429
2019-10-30 19:46:20 -04:00
Galia Kaufman
8c103b0fc9
[Cards] New toggle-button example (#8663)
Adding an exampled for a custom Toggle Button in Cards.
2019-10-28 12:47:22 -04:00
Andrew Overton
538a90cc4b Revert "[Cards] New toggle-button example (#8574)"
This reverts commit 89983ffbf4a9ed5852ab0d7f9b3548fa93a3bd1a.
2019-10-23 14:19:29 -04:00
Galia Kaufman
89983ffbf4
[Cards] New toggle-button example (#8574)
Adding a code sample for a white Toggle Button example in Cards.
2019-10-21 10:10:24 -04:00
Robert Moore
c5188966f6
[Cards, Chips, Tabs] Fix theming docs. (#8431)
Formatting errors in the Theming Extension sections resulted in Markdown
rendering errors.

Part of #7162
Follow-up to #7193
Follow-up to #7194
2019-09-10 10:09:37 -04:00
Robert Moore
6578b292e2
[Cards] Use Starlark macros. (#8163)
Updates the BUILD file to use as many Starlark macros as possible. Makes
releasing easier.

Part of #8150
2019-08-01 16:17:12 -04:00
Robert Moore
1c0827f2ef
[*] Correct elevationDidChangeBlock type. (#8106)
The property type for `elevationDidChangeBlock` declared in `MDCElevatable` should not be changed when declaring the property in headers. If it is, the compiler can generate a warning or error because the types are incompatible.

Closes #8105
2019-07-29 08:08:39 -04:00
Yarden Eitan
130289a6d4
[Cards] CardCell Supports MaterialElevation. (#8079)
Adds conformance to MDCElevatable and MDCElevationOverriding for card cell.

Part of #8022
2019-07-24 17:18:25 -04:00
Yarden Eitan
f2b12a10ed
[Cards] MDCCard conforms to MDCElevation and MDCElevationOverride (#8054)
Adds support for the MDCElevation and MDCElevationOverride protocols.
2019-07-24 16:13:32 -04:00
Cody Weaver
bda9d92cac
[Cards] Add traitCollectionDidChange block to MDCCardCollectionCell (#8007)
Adds a traitCollectionDidChangeBlock to MDCCardCollectionCell, called when its trait collection changes.
2019-07-23 11:29:05 -07:00
Cody Weaver
acd2827f2b
[Cards] Add traitCollectionDidChange block to MDCCard (#8006)
Adds a traitCollectionDidChangeBlock to MDCCard, called when its trait collection changes.

Related to #7953
2019-07-23 09:44:44 -07:00
Robert Moore
ff2d8a4e7f
[*] Drop iOS 9 guards for Swift. (#8001)
Drops some iOS 9 checks in Swift code.

Part of #2651
2019-07-23 12:23:28 -04:00
Andrew Overton
f25c85abd7
[Cards] Add Cards dynamic color support (#7906)
This PR makes it so that MDCCard calls updateShadowColor, updateBorderColor, and UpdateBackgroundColor in layoutSubviews. It also adds a snapshot test.
Closes #7878.
2019-07-17 01:22:11 -04:00
Yarden Eitan
52da482fd2 [Catalog] Add @objc annotations to our containerScheme instances in Swift (#7243)
We need to add @objc annotations to the containerScheme instances in our Swift examples, because we moved to Swift 4.2, the respondsToSelector won't find the setContainerScheme: setter otherwise.
2019-04-23 10:07:56 +03:00
Wenyu Zhang
a6815d2218
[Cards] add missing theming extension doc. (#7193)
Updated unused theming.md to reflect theming extension documentation.
2019-04-22 15:10:42 -04:00
featherless
7a42c6f7c4
[Cards] Annotate themer APIs with the recommended APIs. (#7219)
Part of https://github.com/material-components/material-components-ios/issues/7108
2019-04-22 19:57:20 +03:00
featherless
e2550dbb55
(automated) Regenerate all component readmes. (#7201)
This is an automated change. It was generated by running:

    ./scripts/generate_all_readmes
2019-04-22 13:29:48 +03:00
Andrew Overton
94e5a978d7
[Buttons] Graduate Buttons+Theming to ready (#7187)
This PR graduates the buttons theming extension to ready.

Closes #7158.
2019-04-19 13:57:00 -04:00
Wenyu Zhang
9aa1d72bc7
[Cards] Move Cards theming extension to ready. (#7178)
closes https://github.com/material-components/material-components-ios/issues/7165
2019-04-19 11:36:20 -04:00
Yarden Eitan
5bed3961e6
[ContainerScheme] Graduate ContainerScheme to ready. (#7170)
This PR graduates ContainerScheme to ready.

This includes updating the podspecs, podfile, all the import statements related to ContainerScheme, updating .kokoro rewrite rules, and finally the readme to not have ContainerScheme regarded to as being in beta.

Ran locally kokoro with -b bazel successfully.

Resolves #6732
2019-04-18 09:25:02 -04:00
Andrew Overton
c56d5d76d3
Add @objc annotations to get examples to show up in Dragons (#7168)
This is a follow up PR for #7166 adds @objc annotations to Swift catalogMetadata() methods, because the Swift 4 compiler no longer attempts to infer what methods should be visible to Objective-C. As a result of this change in the compiler, no Swift examples were showing up in Dragons after #7166. See this article: https://useyourloaf.com/blog/objc-warnings-upgrading-to-swift-4/ for additional context.
2019-04-17 21:35:43 -04:00
Andrew Overton
b38372192f
Update to Swift 4.2 (#7166)
This PR updates the Swift version to 4.2.

Partially resolves #6874.
2019-04-17 16:59:02 -04:00