14 Commits

Author SHA1 Message Date
Yarden Eitan
16c3841978
added shape theming to card examples (#5059)
Integrating the recently created Cards shape themer in the examples that have already integrated the CardThemer.

closes #5052
2018-09-07 15:25:35 -04:00
featherless
2181084272
[automated] Standardize our open source license stanza to what Xcode generates. (#4985)
Removes the need to copy-paste stanzas from other files anymore as we'll rely on #4478 to generate the correct stanza for us instead.

This was an automated change generated by running a find-and-replace regular expression:

```
/\*
 Copyright ([0-9]+)-present the Material Components for iOS authors\. All Rights Reserved\.

 Licensed under the Apache License, Version 2\.0 \(the "License"\);
 you may not use this file except in compliance with the License\.
 You may obtain a copy of the License at

 http://www\.apache\.org/licenses/LICENSE-2\.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.
 See the License for the specific language governing permissions and
 limitations under the License\.
 \*/
```

```
/\*
Copyright ([0-9]+)-present the Material Components for iOS authors\. All Rights Reserved\.

Licensed under the Apache License, Version 2\.0 \(the "License"\);
you may not use this file except in compliance with the License\.
You may obtain a copy of the License at

http://www\.apache\.org/licenses/LICENSE-2\.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.
See the License for the specific language governing permissions and
limitations under the License\.
\*/
```

```
/\*
 Copyright ([0-9]+)-present the Material Components for iOS authors\. All Rights Reserved\.
 Licensed under the Apache License, Version 2\.0 \(the "License"\);
 you may not use this file except in compliance with the License\.
 You may obtain a copy of the License at
 http://www\.apache\.org/licenses/LICENSE-2\.0
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.
 See the License for the specific language governing permissions and
 limitations under the License\.
 \*/
```

```
// Copyright $1-present the Material Components for iOS authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
```
2018-08-31 12:13:07 -04:00
Yarden Eitan
3480c50c67
updated to newest CbC standard (#4956)
Move to the new CbC standard released in CatalogByConvention v2.5.0. See PR: material-foundation/cocoapods-catalog-by-convention#27 for more info on the change.
2018-08-29 20:45:13 -04:00
Robert Moore
bf099ab14f
[Cards] Fix example IBOutlet (#4827)
When running internally, the `view` property didn't have an IBOutlet binding.
This caused a crash.

|Before|After|
|--|--|
|![card-iboutlet-before](https://user-images.githubusercontent.com/1753199/44282685-dd012a00-a229-11e8-8163-c3bb7fe10a3e.png)|![card-iboutlet-after](https://user-images.githubusercontent.com/1753199/44282698-e38fa180-a229-11e8-9cdb-083fa5ce688f.png)|
2018-08-17 15:29:47 -04:00
Robert Moore
ae8fcb4e47
[Cards] Fix Swift imports (#4826)
So that it can compile internally.
2018-08-17 14:27:50 -04:00
Galia Kaufman
ae8231e49a
[Cards] Add accessibility documentation (#4454)
Adding accessibility documentation to Cards.
Closes issue: b/78768477.
2018-07-16 10:27:08 -04:00
Yarden Eitan
27a6c46fc3
[Cards] Added interactability toggle to Cards (#4404)
After a discussion with design we have concluded that a card as a whole doesn't need to be interactable as long as there are other interactable components in its content. As an example, a card that has a button can remove its interactability and allow the button to operate as the interactable entity.

This PR includes:

addition of the isInteractable boolean for MDCCard and MDCCardCollectionCell.
Update to our Card examples to show this change.
Update unit tests for Cards to test the new property.
Small fix to the card example.
This unblocks #4261
2018-06-26 16:39:40 -04:00
featherless
7f9f54d5cb
[Cards] Replace MDCFlatButton with text button themer in CardExampleViewController. (#3584)
Also fixes a bug where the button was being initialized as a system button instead of as a custom button. This was affecting the highlighted text state.

Pivotal story: https://www.pivotaltracker.com/story/show/157189842

Before (normal / highlighted):

![simulator screen shot - iphone se - 2018-04-30 at 09 31 27](https://user-images.githubusercontent.com/45670/39429671-99e1d420-4c59-11e8-82a1-f1d1a1962298.png) ![simulator screen shot - iphone se - 2018-04-30 at 09 31 28](https://user-images.githubusercontent.com/45670/39429672-9a0db194-4c59-11e8-93f6-dbe9d0615350.png)

After (normal / highlighted):

![simulator screen shot - iphone se - 2018-04-30 at 09 30 31](https://user-images.githubusercontent.com/45670/39429684-a7e0218a-4c59-11e8-991b-c59d96c74e83.png) ![simulator screen shot - iphone se - 2018-04-30 at 09 30 33](https://user-images.githubusercontent.com/45670/39429685-a914b0e8-4c59-11e8-84cf-fd77448ba421.png)
2018-04-30 12:49:06 -04:00
John Detloff
fc486cf285
[Cards] Implement stroke variant themer (#3485) 2018-04-26 15:51:37 -04:00
Mohammad Cazi
5ee14ab92e
[Catalog] Component descriptions update. (#3490)
* Button Description updated.

* Updating the description of Catalog Components.

* Missing space.

* fixing couple of small issues with catalog descriptions.

https://github.com/material-components/material-components-ios/pull/3490
2018-04-25 16:06:18 -04:00
Yarden Eitan
7f7bc36202
[Catalog] Expose colorScheme + typographyScheme properties for all examples to use app wide theming (#3478)
Made colorScheme and typographyScheme properties in the class interfaces for all our examples.
Moved theming away from example inits and into viewDidLoad
Small update for slider example to allow it to grab the theming properly.
Related Pivotal: https://www.pivotaltracker.com/story/show/156616695
2018-04-25 15:15:17 -04:00
Yarden Eitan
755dcb0523
organize cards examples (#3369) 2018-04-17 14:21:09 +03:00
Yarden Eitan
bd8760b94b [Cards] Implement a semantic color scheme color themer API. (#3289)
Addition of unit tests, and updated the examples to use the new themer.

Pivotal: https://www.pivotaltracker.com/story/show/156169708

[Delivers #156169708]

![simulator screen shot - iphone 8 - 2018-04-08 at 17 44 18](https://user-images.githubusercontent.com/4066863/38468869-9acec11a-3b54-11e8-9e99-af9773ab73bd.png)
2018-04-13 08:42:59 -04:00
Yarden Eitan
58f24b4f18 [Cards] Initial Implementation (#2894)
* [Cards] New API Header files (#2886)

* header files

* rename to MDCCardCollectionCell

* update for review

* update to review

* update to review

* [Cards] Full Implementation (#2892)

* cards core implementation

* updates to API and fixes from doc

* small fixes

* podspec, examples, and tests

* small fixes

* small fix

* small fix

* update inkView API and some small nits

* refactor API and code

* refactor API and code

* remove private header

* rename to MDCCardCollectionCell

* updates to api review

* update based on reviews

* fix tests

* [Cards] Initial Docs

* updates to encoding

* small fix

* pr update

* pr update

* pr update

* pr update

* pr update

* pr update

* pr update

* ink api update

* ink api update
2018-02-01 18:45:43 -05:00