109 Commits

Author SHA1 Message Date
rami-a
bff3fcf7f1
[Buttons] [MaskedTransition] Apply safe area to floating button example and masked transition example (#5389)
This change applies the safe area to the examples for Floating Button and Masked Transition so that they appear correct on notched displays in landscape.

Closes #3702 
Closes #3714 

Floating Buttons Before:
![simulator screen shot - iphone x - 2018-10-10 at 12 53 13](https://user-images.githubusercontent.com/2364772/46752602-a4128e00-cc8b-11e8-8d58-32255db304af.png)

Floating Buttons After:
![simulator screen shot - iphone x - 2018-10-10 at 12 52 33](https://user-images.githubusercontent.com/2364772/46752584-9a892600-cc8b-11e8-9f8f-fafbc67e2a8b.png)

Masked Transition Before:
![simulator screen shot - iphone x - 2018-10-10 at 12 53 23](https://user-images.githubusercontent.com/2364772/46752610-a8d74200-cc8b-11e8-8ed9-ba010d279d9a.png)


Masked Transition After:
![simulator screen shot - iphone x - 2018-10-10 at 12 52 28](https://user-images.githubusercontent.com/2364772/46752564-91985480-cc8b-11e8-82e6-1458de23c38a.png)

Additionally, I noticed in the Masked Transition example that the left/right fabs were swapped in their position so I fixed this. I also applied the safe area to the fullscreen transition example.
2018-10-10 16:48:34 -04:00
Yarden Eitan
4e456f88ce
[Buttons] Integrate the FAB shape themer into our examples (#5133)
This resolve issue #5049 and is a follow up to PRs #5131 and #5132 and relies on their code.
2018-09-17 11:54:07 -04:00
Yarden Eitan
08bb1d707a
[Buttons] Integration of the button shape themer into the examples (#5121)
This is a follow up PR for #5119  and #5120 and relies on both.

This integrates the created shape themer for buttons into the examples that currently use color/typography themers.

This closes #5050
2018-09-14 13:49:27 -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
featherless
bbe4a23fe0
Remove all __IPHONE_11_0 checks now that we no longer support Xcode 8. (#4915)
We can now make use of @available throughout our codebase.

We support Xcode 9 and up, which includes the iOS 11 SDK. This means we can remove any guards for SDKs prior to iOS 11.

This was cleaned up by running a global find-and-replace with the following regular expression:

```
Find:#if defined\(__IPHONE_11_0\) && \(__IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_11_0\)\n(.+if \(@available\(iOS 11.0, \*\)\) \{(?:.|\n)*?)(?:#else(?:.|\n)*?)?\n#endif
Replace:$1
```

With some additional cleanup for stragglers that didn't match this pattern. Note that else clauses were intentionally dropped.

Closes https://github.com/material-components/material-components-ios/issues/4909
2018-08-28 09:57:30 -04:00
Wenyu Zhang
2444107e30
[Buttons] fix the text overlapping safeArea issue on
ButtonsShapesExampleViewController (#3703)

closes #3703 

#####Screenshots before the change:    
![before1](https://user-images.githubusercontent.com/8836258/44283102-4a618a80-a22b-11e8-955e-bfcc55f387ca.png)

![before2](https://user-images.githubusercontent.com/8836258/44283032-fc4c8700-a22a-11e8-9c9a-93626bc4a063.png)

####Screenshots after the change:
![after1](https://user-images.githubusercontent.com/8836258/44283041-040c2b80-a22b-11e8-94a4-1c5365474e8a.png)
![after2](https://user-images.githubusercontent.com/8836258/44283042-040c2b80-a22b-11e8-82d7-5bbdba149a8a.png)
2018-08-20 12:36:49 -04:00
Robert Moore
175942d9e0
[Catalog] Fix Swift example imports (#4780)
Many of our Swift examples are either missing imports or are importing all of
MaterialComponents. Both of these will cause failures during internal builds.
2018-08-14 13:26:37 -04:00
Robert Moore
c43677ace0
[Buttons] Fix safeAreaInsets availability check (#4775)
Only iOS 11+ has `safeAreaInsets` defined, so the compiler may complain when
we try to include without runtime guards available.
2018-08-14 12:37:43 -04:00
featherless
abae199d71
[Catalog] Enable AppBar's isTopLayoutGuideAdjustmentEnabled in all examples. (#4537)
This enables the new FlexibleHeader/AppBar behavior that correctly updates the content view controller's safe area insets/top layout guide to match the flexible header's height and sets the frame of the content view controller to match the bounds of the container view controller.

As part of this change, we were able to remove the Catalog logic that would manually adjust the frame of examples that did not have a scroll view. Examples are now expected to adjust their content according to the top layout guide / safe area insets, as can be seen in the ButtonsTypicalUse example.

Examples that *do* have a scroll view will also now make use of the correct top layout guide / safe area insets behavior. This behavioral change can most notably be seen in the ActivityIndicator example, which no longer has a 20 point "dead zone" above the table view.
2018-07-12 15:43:53 -04:00
Robert Moore
3244f5491d
[Buttons] Disable FAB animation for VoiceOver (#4535)
When VoiceOver is running and the FAB animations for expanding/collapsing are
triggered, sometimes VoiceOver won't detect the FAB. It can still detect the
FAB if the user "scrubs" their finger to discover it, but it's a big problem
if they don't know they're missing a button.  The effect seems intermittent
and this is the best work-around.
2018-07-12 13:15:19 -04:00
Robert Moore
7a1c3ced31 [Catalog] Fix VoiceOver ordering in Buttons demo (#4482)
The Buttons main demo had its views "out of order" when using VoiceOver
because the buttons' frames were closer to the top of the screen
relative to their labels. Instead of relying on the view hierarchy to
find all of the elements, they can be manually returned in-order.

Closes #3654
2018-07-10 15:53:25 -04:00
Randall Li
25b0ed9ea2
[Buttons] Updated accessibility documentation and examples (#4418)
Made copyedit improvements to the accessibility documentation.
Applied those instructions to the button examples.

Fixes: https://github.com/material-components/material-components-ios/issues/3874 and https://github.com/material-components/material-components-ios/issues/3873
2018-06-21 11:13:00 -04:00
Randall Li
1d692a8ab2 [Buttons] Added a11y minimum touch target size to Accessibility section in readme. (#4386)
* Added a11y minimum touch target size to Accessibility section in readme.
Catalog: added minimum size a11y to button example.

* Update README.md

* nit changes
2018-06-15 10:58:28 -04:00
Randall Li
5ec8aa0980
[Buttons] Adding Accessibility labels to README and fab example. (#4330)
https://github.com/material-components/material-components-ios/issues/3874
2018-06-01 10:08:58 -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
Mohammad Cazi
988a577902
FAB button in shapes example should be themed. (#3737)
https://github.com/material-components/material-components-ios/pull/3737
2018-05-04 15:49:41 -04:00
featherless
966a70e86d [Buttons] Theme the typical use example with the injected schemes. (#3603)
Before/after:

![simulator screen shot - iphone se - 2018-05-01 at 10 08 08](https://user-images.githubusercontent.com/45670/39475789-b171694c-4d27-11e8-92f2-7ff639586561.png) ![simulator screen shot - iphone se - 2018-05-01 at 10 07 20](https://user-images.githubusercontent.com/45670/39475791-b3995ac2-4d27-11e8-9c63-38ce55eec148.png)
2018-05-01 13:58:27 -04:00
John Detloff
55b9952332
[Buttons] Add outlined button themer (#3566)
https://www.pivotaltracker.com/story/show/157003868

Updated version of: https://github.com/material-components/material-components-ios/pull/3483

Minor cleanup, changes squashed and rebased on develop, reverted changed to TextButtonThemer

Before:
![simulator screen shot - iphone x - 2018-04-27 at 16 29 50](https://user-images.githubusercontent.com/1418389/39383693-387b33f2-4a38-11e8-8691-8312b5c4001d.png)


After:
![simulator screen shot - iphone x - 2018-04-27 at 16 28 33](https://user-images.githubusercontent.com/1418389/39383669-19fb8a4e-4a38-11e8-8a99-539430bbb9a6.png)
2018-04-30 14:55:33 -04:00
featherless
200fc90621
[Buttons] Add a floating action button themer. (#3588)
Also updated the unit tests and typical use example.

I've also created https://www.pivotaltracker.com/epic/show/3956231 to track what we're going to do about MDCFloatinButton.
2018-04-30 13:48:56 -04:00
featherless
2414525074
[Buttons] Replace MDCFlatButton with MDCButton + text themer in content edge insets example. (#3583)
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/157189341

Before (normal / highlighted):
![simulator screen shot - iphone se - 2018-04-30 at 09 21 34](https://user-images.githubusercontent.com/45670/39429179-18130c08-4c58-11e8-972a-b96dd827ee26.png) ![simulator screen shot - iphone se - 2018-04-30 at 09 21 36](https://user-images.githubusercontent.com/45670/39429181-193b0ff4-4c58-11e8-8dab-dcdfcf86a7cf.png)

After (normal / highlighted):
![simulator screen shot - iphone se - 2018-04-30 at 09 21 03](https://user-images.githubusercontent.com/45670/39429211-2e171710-4c58-11e8-95e6-07eb614857c8.png) ![simulator screen shot - iphone se - 2018-04-30 at 09 21 04](https://user-images.githubusercontent.com/45670/39429215-30bde2c8-4c58-11e8-882a-e585da609684.png)
2018-04-30 12:48:38 -04:00
featherless
bfe781a17f
[Buttons] Fix build breakage due to API changes in ButtonThemer. (#3518) 2018-04-26 13:55:46 -04:00
featherless
d70da6a18d
[Buttons] Replace MDCRaisedButton with a contained button themer. (#3502)
Pivotal story: https://www.pivotaltracker.com/story/show/157107951

Before:
![simulator screen shot - iphone se - 2018-04-25 at 21 49 23](https://user-images.githubusercontent.com/45670/39281433-88dadd82-48d2-11e8-9661-418b66f1be0d.png)


After:
![simulator screen shot - iphone se - 2018-04-25 at 21 47 44](https://user-images.githubusercontent.com/45670/39281428-7d43bb24-48d2-11e8-8fb2-c1e8fa62eb31.png)
2018-04-26 12:50:33 -04:00
featherless
c4d443a5f3
[Buttons] Replace MDCRaisedButton with contained button themer in ButtonsShapesExampleViewController. (#3503)
Pivotal story: https://www.pivotaltracker.com/story/show/157046589

Before:

![simulator screen shot - iphone se - 2018-04-25 at 21 52 36](https://user-images.githubusercontent.com/45670/39281708-02133e28-48d4-11e8-8b03-fbc0156b4b23.png)

After:

![simulator screen shot - iphone se - 2018-04-25 at 21 57 09](https://user-images.githubusercontent.com/45670/39281712-05316d96-48d4-11e8-9438-057a41e6bbda.png)
2018-04-26 12:49:58 -04:00
featherless
5a977ebd5f [Buttons] Replace references to MDCRaisedButton with MDCContainedButtonThemer. (#3482)
* [Buttons] Replace references to MDCRaisedButton with MDCContainedButtonThemer.

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

* Background color.
2018-04-26 11:33:53 -04:00
Randall Li
9201d9ec15 [Button] Removed example of stroked button (#3421)
* [Button] Removed example of stroked button

* removed unused variable
2018-04-26 11:27:06 -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
featherless
23110ef116
[Catalog] Make all swift copycat demos be dragons. (#3443)
Also removed "(Swift)" from any examples that remained as non-dragons. The catalog does not need to advertise which language a given demo is in.

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

## Screenshots

Before:
![simulator screen shot - iphone se - 2018-04-23 at 14 04 14](https://user-images.githubusercontent.com/45670/39144588-36095450-46ff-11e8-868d-bdb7e8ee5438.png)

After:
![simulator screen shot - iphone se - 2018-04-23 at 13 53 39](https://user-images.githubusercontent.com/45670/39144567-2ad7bf9a-46ff-11e8-9fd5-ef0739d427b3.png)
2018-04-24 15:52:13 -04:00
featherless
d4f727e16f
[Buttons] Add umbrella headers for all extension targets. (#3454)
Also updated all imports to make use of the umbrella headers.

Pivotal story: https://www.pivotaltracker.com/story/show/157045283
2018-04-24 11:36:56 -04:00
Yarden Eitan
27eac8c05c
[Catalog] Implement API for setting app-wide theming (#3461)
Pivotal Story: https://www.pivotaltracker.com/story/show/156616695

This includes an implementation example in the ButtonTypicalUse example. In a separate PR will this be added to the rest of our examples.
2018-04-24 11:08:54 -04:00
featherless
7c6248ccc0
[Buttons] Replace MDCRaisedButton with contained button APIs in content edge insets example. (#3453)
Pivotal story: https://www.pivotaltracker.com/story/show/157045336

Before:
![simulator screen shot - iphone se - 2018-04-24 at 07 30 07](https://user-images.githubusercontent.com/45670/39184503-995e4cda-4791-11e8-9ba7-6049c1a4d905.png)

After:
![simulator screen shot - iphone se - 2018-04-24 at 07 29 48](https://user-images.githubusercontent.com/45670/39184509-9bf4893c-4791-11e8-9fdf-a58c36fd90ce.png)
2018-04-24 08:53:01 -04:00
Mohammad Cazi
238b6d7b06
Added ImageTintColor for theming FAB Button. (#3442)
https://github.com/material-components/material-components-ios/pull/3442
2018-04-23 14:53:06 -04:00
Mohammad Cazi
ece3c1457b [MDCButton] Added new API for coloring image tint color for state. (#3423)
Examples updated.
Unit Test Written.
![screen shot 2018-04-20 at 1 14 17 pm](https://user-images.githubusercontent.com/36271115/39064922-27f71680-449e-11e8-99fb-9fcd0e69d870.png)
![screen shot 2018-04-20 at 1 14 21 pm](https://user-images.githubusercontent.com/36271115/39064929-2be07ffc-449e-11e8-820b-7812cbb8d382.png)
2018-04-20 17:10:41 -04:00
Randall Li
827552a840 [Button] Fixed catalog description of typical use example (#3435) 2018-04-20 16:45:42 -04:00
Mohammad Cazi
82d19ae5d0 [Buttons] Create a separate class for MDCFloatingButton color themer. (#3429)
Added MDCFloatingButtonColorThemer to color theme a floating button.
examples and tests are updated.

![screen shot 2018-04-20 at 1 14 17 pm](https://user-images.githubusercontent.com/36271115/39068266-baf19f22-44a9-11e8-9eaa-fe58d74dd804.png)
2018-04-20 16:43:27 -04:00
Randall Li
3d1a7c2791
[Button] Contained: Changed colors for ink and disabled (#3419)
https://www.pivotaltracker.com/story/show/156403056

Before:
![simulator screen shot - iphone 8 plus - 2018-04-20 at 10 43 46](https://user-images.githubusercontent.com/943565/39057651-c1bbcab6-4487-11e8-8d0d-86af1c1652cb.png)

After:
![simulator screen shot - iphone 8 plus - 2018-04-20 at 10 40 23](https://user-images.githubusercontent.com/943565/39057492-5784a550-4487-11e8-98f6-14faf9c1cf8d.png)

Before Ink:
![simulator screen shot - iphone 8 plus - 2018-04-20 at 10 43 49](https://user-images.githubusercontent.com/943565/39057657-c6153b60-4487-11e8-8058-377f053dd6a4.png)

After Ink:
![simulator screen shot - iphone 8 plus - 2018-04-20 at 10 40 26](https://user-images.githubusercontent.com/943565/39057513-60806f04-4487-11e8-871c-f838e989f1f0.png)
2018-04-20 13:45:35 -04:00
Randall Li
1fa5bdf0b3
[Button] Changed text button disabled to do 37% opacity, Ink to use onSurface 16% (#3406)
Changed typical use example to use MDCTextButtonThemer.

https://www.pivotaltracker.com/story/show/156402729

before:
![simulator screen shot - iphone 8 plus - 2018-04-19 at 12 12 57](https://user-images.githubusercontent.com/943565/39004311-096558cc-43cb-11e8-8338-5ab4deb7ed90.png)

after:
![simulator screen shot - iphone 8 plus - 2018-04-19 at 14 00 25](https://user-images.githubusercontent.com/943565/39009598-0fc7c3e4-43da-11e8-9215-1184781ca759.png)

Ink screenshots:
before:
![simulator screen shot - iphone 8 plus - 2018-04-19 at 12 13 58](https://user-images.githubusercontent.com/943565/39004389-334189ae-43cb-11e8-86d1-dd4b0e45e731.png)

after:
![simulator screen shot - iphone 8 plus - 2018-04-19 at 14 00 27](https://user-images.githubusercontent.com/943565/39009606-14209cb8-43da-11e8-9e0b-d1610d45fed2.png)
2018-04-19 14:35:22 -04:00
Mohammad Cazi
c818048a1c
[MDCFloatingButton] Color Themer added. (#3381)
* MDCFloatingButton Color Themer added.
No support for icon color change inside color themer, this is left for user to handle for now.
Example added.
Pivotal: https://www.pivotaltracker.com/story/show/156725760

* Remove redundancy in tests and FabButtonColorThemer.

* Adding another example for color theming of a button.

* Setting secondary color for the test instead of primary since that's the value that's being used.

PR: https://github.com/material-components/material-components-ios/pull/3381
2018-04-18 15:32:53 -04:00
Yarden Eitan
67a68d3d3c
[Buttons] Added Shapes Support (#3368)
Pivotal Story: https://www.pivotaltracker.com/story/show/156168281

* Implementation of Shapes support in Buttons.
* Added example of using shapes on different styles of buttons (see screenshot and gif below).
* Exposed an initializer for MDCCurvedCornerTreatment to be able to use in the example.
* Exposed the color sublayer in MDCShapedShadowLayer to allow hierarchal reordering of sublayers for a shaped button to work with ink and shadow correctly.
* Updated unit tests.
2018-04-17 19:42:12 +03:00
Randall Li
53dddde6cf [Button Examples] Moved most examples into dragons so that only beautiful demos are in the main catalog. (#3358)
[Button Examples] Moved most examples into dragons so that only beautiful demos are in the main catalog. (#3358)

https://www.pivotaltracker.com/n/projects/2150420/stories/156402729
2018-04-13 16:23:21 -04:00
Yarden Eitan
2869609c2e [Buttons] Implement a color themer for an MDCRaisedButton (#3335)
Addition of a unit test, and updated example to use the new themer.

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

![simulator screen shot - iphone 8 - 2018-04-12 at 11 47 17](https://user-images.githubusercontent.com/4066863/38667891-5d161162-3e4b-11e8-90ac-efa4c0a88bcb.png)
2018-04-13 09:02:11 -04:00
Yarden Eitan
482bd56d46
[Buttons] Implement a color themer for an MDCFlatButton (#3308)
Addition of a unit test, and updated example to use the new themer.

Pivotal: https://www.pivotaltracker.com/story/show/156640819
2018-04-11 17:14:22 +03:00
Yarden Eitan
2146d297b1
[Buttons] Implement a typography themer. (#3318)
Addition of a unit test, and updated the examples to use the new typography themer.

Pivotal: https://www.pivotaltracker.com/story/show/156171586
2018-04-11 15:34:52 +03:00
Yarden Eitan
99fd914646
[Buttons] Implement a semantic color scheme color themer API. (#3306)
Addition of a unit test, and updated example to use the new themer.

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

Flat button and raised button theming are separate stories and will be added in separate PRs.
2018-04-10 15:51:17 +03:00
Yarden Eitan
29d760c7d6
Added isPresentable to catalog files, ported over ZShadow to dragons. (#2726) 2017-12-15 12:20:35 -05:00
ianegordon
4befe61f74
[Buttons] Add a custom font property (#2715)
* [Button] Add custom font properties

* Add example and tests

* Add sample supporting custom font and dynamic type

* Clean up tests

* Fix C&P error in Copyright date.

* Remove outdated warning

* Fix misuse of standardFont and simplify scale invocation.
2017-12-14 11:48:17 -05:00
Randall Li
00611df7bd
[Buttons] Corrected imports in examples. (#2645)
* [Buttons] Corrected imports in examples.

PiperOrigin-RevId: 175377616

* added import UIKit
2017-12-08 11:40:03 -05:00
Randall Li
b1ec22207f
Fixed float conversion build errors (#2602)
* Fixed float conversion build errors
Implicit conversion loses floating-point precision: 'double' to 'CGFloat' (aka 'float')

Found by turning on warnings via: https://github.com/material-components/material-components-ios/pull/2480

* More Fixed float conversion build errors
Implicit conversion loses floating-point precision: 'double' to 'CGFloat' (aka 'float')

Found by turning on warnings via: https://github.com/material-components/material-components-ios/pull/2480
2017-12-06 15:57:04 -05:00
Robert Moore
f01c39d050 [Buttons] Readability for newlines (#2568)
Moving assignment/boolean operators to previous lines.

PR feedback for #2563
2017-12-04 18:09:05 -05:00