17 Commits

Author SHA1 Message Date
Robert Moore
800188a649
{clang-format} Format the components. (#6347)
This is a follow-up to https://github.com/material-components/material-components-ios/pull/6027

```
find components \( -name "*.h" -or -name "*.m" \) | xargs clang-format -i
```
2019-01-23 11:08:43 -05:00
Robert Moore
372d6b24f9
No longer using -init for Color Scheme. (#5734)
{MDC iOS} No longer using `-init` for Color Scheme.

Based on the discussions in go/mdc-ios-theming, we should not use the `-init` default initializer. Instead, we should use an explicit set of defaults.

Search regex: '\[\[MDCSemanticColorScheme alloc\] init\]'
2018-11-12 12:54:47 -05: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
Cody Weaver
a5a8ba0c74
[Slider] Update examples for safeAreaInsets and schemes (#4897)
Update examples to respect safe area and be themed with MDCTypographyScheme and MDCSemanticColorScheme. This change also allows us to see the slider within the storyboard example and works with rotation for the other examples layout.

| Before | After |
|:-------|:------|
| ![comparedportbefore](https://user-images.githubusercontent.com/7131294/44680471-cddd6180-aa0b-11e8-976e-e765219e3003.png) | ![comparedportafter](https://user-images.githubusercontent.com/7131294/44680437-be5e1880-aa0b-11e8-8e4d-10c4e0738a28.png)|
| ![autolayoutbefore5](https://user-images.githubusercontent.com/7131294/44680488-da61ba00-aa0b-11e8-9ebc-92506f8b16c4.png) | ![autolayoutafter5](https://user-images.githubusercontent.com/7131294/44680505-e3528b80-aa0b-11e8-949b-14ea2c459ae5.png)|
|![autolayout5before](https://user-images.githubusercontent.com/7131294/44680542-01b88700-aa0c-11e8-9c8c-d676638c3aa9.png) | ![autolayout5after](https://user-images.githubusercontent.com/7131294/44680550-054c0e00-aa0c-11e8-8297-211e75e5da1f.png) |







Closes #3794
2018-08-28 10:57:54 -04:00
John Detloff
0c0ce4248e
Initialize default color and typography schemes in examples (#4200)
Ensure a default colorScheme and typographyScheme is initialized for examples.
2018-05-21 12:44:43 -04:00
featherless
e923d2d928
[Catalog] Make many examples be dragons. (#3642)
Pivotal story: https://www.pivotaltracker.com/story/show/156939988
Pivotal story: https://www.pivotaltracker.com/story/show/156804299
Pivotal story: https://www.pivotaltracker.com/story/show/156939962
Pivotal story: https://www.pivotaltracker.com/story/show/156982119
Closes: https://github.com/material-components/material-components-ios/issues/3183
2018-05-02 08:31:55 -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
featherless
0cc6b487ae
[Slider] Add umbrella headers for all extension targets. (#3474)
Also updated all imports to make use of the umbrella headers.

Pivotal story: https://www.pivotaltracker.com/story/show/157045283
2018-04-24 15:53:31 -04:00
John Detloff
3c139cc00d
[Slider] Update color themer (#3375)
Before:
![screen shot 2018-04-16 at 4 47 37 pm](https://user-images.githubusercontent.com/1418389/38834465-8c2ca684-4196-11e8-8536-d08e537c4bf2.png)
![screen shot 2018-04-16 at 4 47 42 pm](https://user-images.githubusercontent.com/1418389/38834466-8c35342a-4196-11e8-822a-a2d1aa3a767a.png)
![screen shot 2018-04-16 at 4 47 48 pm](https://user-images.githubusercontent.com/1418389/38834467-8c406b4c-4196-11e8-9e76-5792b31adf2d.png)

After:
![screen shot 2018-04-16 at 4 46 34 pm](https://user-images.githubusercontent.com/1418389/38834461-8c11b3c4-4196-11e8-902d-08e02fe5e8b7.png)
![screen shot 2018-04-16 at 4 46 41 pm](https://user-images.githubusercontent.com/1418389/38834462-8c1bb266-4196-11e8-9645-3a72bd4e1b8c.png)
![screen shot 2018-04-16 at 4 46 49 pm](https://user-images.githubusercontent.com/1418389/38834464-8c252b0c-4196-11e8-90a3-afb01d4af4ce.png)

https://www.pivotaltracker.com/story/show/156169452
2018-04-18 10:51:16 -04:00
Yarden Eitan
29d760c7d6
Added isPresentable to catalog files, ported over ZShadow to dragons. (#2726) 2017-12-15 12:20:35 -05:00
Cody Weaver
d190b646c7 Fix layout positions so UISlider isn't cropped on iPhone 4s. (#2216) 2017-10-18 17:16:40 -04:00
Robert Moore
8940d77d6d [Catalog] Verify all examples provide CatalogByConvention methods (#1911)
All examples now have at least the required `+catalogBreadcrumbs` and `+catalogIsPrimaryDemo`.  All examples in the same breadcrumbs path have only one primary demo.  There should be only one `-catalogDescription` attached to the primary demo.

Closes #1897
2017-08-31 08:46:10 -04:00
Robert Moore
e03ad370c6 [Math] Align frames to pixel boundaries (#1730)
Adding a new function to realign a CGRect (frame) to pixel boundaries
based on the screen scale. After a review of the catalog, I'm updating
the areas where I found misaligned frames.

Closes #1723
2017-08-07 16:46:32 -04:00
Adrian Secord
8c3af252be Adding AUTHORS and removing CONTRIBUTORS.txt.
We can credit any contributor who would like to be credited this way, by adding them on request to the AUTHORS file. The copyright statement changes are required for this to work. Note that this has...

Summary:

We can credit any contributor who would like to be credited this way, by adding them on request to the AUTHORS file. The copyright statement changes are required for this to work. Note that this has no legal change, since the contributors always retained their copyright despite the copyright notice, but it's a nice acknowledgement.

Changed copyright statement to include non-Google authors.

Command run:

find * \( -name '*\.m' -or -name '*\.h' -or -name '*\.swift' \) -and -not \( -path 'scripts/external*' -name Pods  \) -print0 | xargs -0 sed -i '' 's/Copyright \(.*\) Google Inc/Copyright \1 the Material Components for iOS authors/'

Added non-source files.

Command run:

grep -Rl 'Copyright .* Google Inc' * --exclude-dir scripts/external --null | xargs -0 sed -i '' 's/Copyright \(.*\) Google Inc/Copyright \1 the Material Components for iOS authors/'

Reviewers: featherless, O1 Material components iOS, randallli

Reviewed By: O1 Material components iOS, randallli

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1415
2016-08-08 08:16:37 -07:00
Adrian Secord
3aedace959 Re-enabled 100-character line limit.
Reviewers: randallli, O1 Material components iOS

Reviewed By: randallli, O1 Material components iOS

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D965
2016-06-13 13:34:57 -04:00
Junius Gunaratne
7cc87bd6d9 [Catalog] Improve slider demo, move layout code into supplemental files
Summary: Screenshot http://codereview.cc/M21

Reviewers: featherless, larche, #mdc_ios_owners, ajsecord

Reviewed By: larche, #mdc_ios_owners, ajsecord

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D594
2016-04-13 13:20:09 -04:00