1731 Commits

Author SHA1 Message Date
Robert Moore
61445a677a [Ink] Fix ink animation timing in time-scaled layers (#2884)
When a CALayer has a speed other than 1.0 (or other manipulations to its local
time coordinate space), animations need to convert beginTime values into this
time space.  For a beginOffset of zero, the layer automatically sets the
beginTime to the current active time of the layer. For non-zero values
(delayed animations), the conversion has to be performed by the caller.

This article has a pretty good explanation:
https://coveller.com/2016/05/core_animation_timing/

Closes internal issue b/72403469
2018-01-31 16:11:45 -05:00
ianegordon
2a38d42711
[Dialogs] Rounded corner example (#2881)
* [Dialogs] Rounded corner example

* FB
2018-01-31 15:53:02 -05:00
Will Larche
0d877a048f
[TextFields] Correcting logic mistake (#2885)
Caught by internal user.
2018-01-31 12:14:53 -05:00
andrewplai
2afa8c57d8 Update MDCFlexibleHeaderView.m (#2861)
Right now, _viewsToHideWhenShifted are only hidden for MDCFlexibleHeaderShiftBehaviorEnabled.  Changed the condition so that they will hide for both MDCFlexibleHeaderShiftBehaviorEnabled and MDCFlexibleHeaderShiftBehaviorEnabledWithStatusBar.
2018-01-29 12:27:20 -08:00
Scott Hyndman
cc70fe7ca7 Adds missing Jazzy yaml files. (#2871) 2018-01-26 06:45:35 -08:00
Cody Weaver
2161a9be86 Update custom font example to be in the right cell instead of its own. Update the AnimationTiming example to showcase the right names. (#2869) 2018-01-26 06:44:40 -08:00
danblakemore
dea8e3c7f4 [Dialogs] Added Example for issue #2860 to Dragons (#2864)
* [Dialogs] Added Example for issue #2860 to Dragons

Added an example to the dialogs examples which shows a dialog from a presented
view controller. Upon dismissal, the content of the view controller (designed to
obviously demark its bounds) shifts due to #2860.

* Changing the dialog content to better illuminate why this example exists.

* Added more informative titles

The presented view controller how has a title which further illustrates the
bounds change since the navigation bar's content shifts too. Also updated the
catalog description.

* Update copyright dates to help kokoro.

Copyright files only during a time range in which they actually existed.
2018-01-26 06:43:33 -08:00
Ian Gordon
9995b282e1 [Chips] Update font style 2018-01-25 12:24:26 -08:00
Sam Morrison
31f908a10d [Chips] RTL support (#2863) 2018-01-25 09:34:24 -08:00
Ian Gordon
d44cffb445 Bumped version number to 44.5.0. 2018-01-22 12:27:48 -08:00
ianegordon
fd1681b0de
[ProgressView] Remove MDMMotion (#2854)
* Remove MDMMOtion

* Cleanup PR before merge
2018-01-22 15:19:09 -05:00
ianegordon
a8d903460e
[ButtonBar] Expose font and padding properties (#2849)
* [ButtonBar] Expose font and padding properties

* Fix file headers

* Feedback

* Add TODO

* Feedback. Extract ButtonBarButton

* Add documentation
2018-01-18 14:44:12 -05:00
Will Larche
b7ec2004ab
[TextFields] Correcting documentation (#2844)
Overriding cancelled travis since this is for a .md file only.
2018-01-16 17:27:58 -05:00
Ian Gordon
a6912063bc Bumped version number to 44.4.0. 2018-01-16 11:32:38 -05:00
ianegordon
29e98b8736
[Snackbar] Add customizable fonts (#2831)
* Add a custom font property

* Add custom button font
2018-01-12 10:10:19 -05:00
Sam Morrison
b67f04ed80 [Chips] Stateful ink (#2823)
* [Chips] Stateful ink

* Fix floating point conversion errors

* Default ink color to MDCInkView.defaultInkColor

* Deprecate inkColor property

* Clarify inkColorForState behavior

* Ensure Chip inkcolor is never set to a bad value

* Chips ink color tests
2018-01-11 11:28:03 -05:00
Ian Gordon
3f485eb59e Bumped version number to 44.3.0. 2018-01-11 01:28:42 -05:00
Ian Gordon
20faefcd0c Merge branch 'release-candidate' into develop 2018-01-11 00:10:56 -05:00
ianegordon
5a05ff9f9b
[Typography] Add FontThemer & FontScheme to FeatureHighlight (#2760)
* [Typography] Add FontThemer & FontScheme to FeatureHighlight

* Add Themer Example

* Remove TODO

* Cleanup / Feedback

* Migrate to new type hierarchy
2018-01-10 23:35:36 -05:00
Ian Gordon
74b0819a89 Silence internal warning 2018-01-10 18:42:38 -05:00
Ian Gordon
cdebd6c4ae Bumped version number to 44.2.0. 2018-01-10 18:04:39 -05:00
ianegordon
e4b7f2464a
[Chips] Add custom font support (#2820)
* [Chips] Add custom font support

* Don't store font per state as our resizing is complex.
2018-01-09 15:44:51 -05:00
Sam Morrison
79a506b4ea [FlexibleHeader] Fix status bar not disappearing for edge case (#2819) 2018-01-09 14:55:45 -05:00
ianegordon
7ac5e5b22d
[Shapes] Add a Shapelibrary header (#2818)
* Add ShapeLibrary header

* Add final newline
2018-01-09 13:15:52 -05:00
Adrian Secord
6448e87b34 Merge branch 'release-candidate' into develop 2018-01-08 16:13:46 -05:00
Yarden Eitan
3fe2bff374
[Podspec] Fix podspec warnings when issuing a lint (#2811)
* added supressing of partial-availability and changed image bit depth to remove podspec warnings on linting

* added code check
2018-01-08 11:45:11 -05:00
Adrian Secord
f2ab451423 Bumped version number *down* to 44.1.0 because breaking change was reverted. 2018-01-08 10:36:55 -05:00
Adrian Secord
3dfa26fd0c Adding ShapeLibrary dep to Chips. 2018-01-08 10:29:23 -05:00
Adrian Secord
267685b31a Revert "[Dialogs] Explicitly annotate MDCAlertController as not subclassable (#2801)"
Multiple internal breakages from fairly innocuous-looking subclasses.

This reverts commit d70ebaa194591c68e9fb7e4d755b93f56aabe703.
2018-01-08 10:28:28 -05:00
Adrian Secord
5e4968769a Bumped version number to 45.0.0. 2018-01-08 07:41:49 -05:00
Yarden Eitan
c29c4c5b5a remove themer from bottomnavbar (#2814) 2018-01-07 23:01:01 -05:00
Adrian Secord
294643fc0b
[Slider] Add appearance properties and enable UIAppearance. (#2796)
* Add Slider appearance properties and enable UIAppearance.

Adds `thumbRadius` and `thumbElevation` as UIAppearance properties.

Makes `color`, `disabledColor`, and `trackBackgroundColor` UIAppearance-compatible.

* Added unit tests for slider.

* Remove infeasible coding unit test for now.

* Line-length formatting.

* Rename and condense color tests, sort by order that they appear in the header.

* Rename tests and mark the thumb section.

* Replace `_thumbTrack.thumbRadius` usage with `self.thumbRadius`.

* Remove NSCoding-related helper, moved to another branch.

* Search-and-replace mixup.

* Line-length fixups.
2018-01-07 12:15:02 -05:00
ianegordon
a63e8610da [Activity Indicator] Don't call UIAppearance in +initialize (#2810) 2018-01-05 17:47:04 -05:00
Yarden Eitan
c88a059640
[Catalog] Remove unwanted warnings from build (#2794)
* fix warnings for .count in Swift strings and duplicate images in Asset folders, also give the Extension target all icons

* update project settings to recommended ones
2018-01-05 16:58:33 -05:00
ianegordon
49de50edae Consolidate installation requirements in the main README (#2809) 2018-01-05 13:50:38 -05:00
John Detloff
d30df6c569
Add an api to MDCActivityIndicator to allow animations before/after animating (#2766) 2018-01-05 12:05:27 -05:00
Robert Moore
f4cc724e54
[Typography] Suppress pointer warning in tests (#2805)
Internal builds are issuing a warning that `&UIFontWeightMedium` will
never be NULL, although this is incorrect on iOS versions below 8.2.
2018-01-04 20:02:14 -05:00
ianegordon
d70ebaa194
[Dialogs] Explicitly annotate MDCAlertController as not subclassable (#2801)
* [Dialogs] Explicitly annotate MDCAlertController as not subclassable

* Remove outdated subclassing test
2018-01-04 16:49:54 -05:00
Robert Moore
d4a4220e62
[BottomNav] Reduce default font to caption (#2799)
BottomNavigation previously had a nil default font, so a default
`button` style font was set. This is too large (and is Medium weight),
so the font should be changed to something smaller. 'Caption' style
looks better.
2018-01-04 10:07:14 -05:00
Ian Gordon
ab2d93e633 Merge branch 'release-candidate' into develop 2018-01-04 00:32:53 -05:00
Ian Gordon
bf75aa63d1 Bumped version number to 44.0.0. 2018-01-03 16:59:49 -05:00
Yarden Eitan
224115d5f1
stop weird behavior of swiping to dismiss cells in collection views if 2 fingers are swiping at the same time (#2792) 2018-01-03 15:39:57 -05:00
Robert Moore
85647affe8
[Ink] Add NSCoding support to MDCInkView/Layer (#2777)
Both MDCInkLayer (and MDCLegacyInkLayer) and MDCInkView should support
NSCoding methods since their superclasses conform to an NSCoding (or
NSSecureCoding) protocol.

Closes #2772
2018-01-02 20:25:46 -05:00
Ian Gordon
5b8067327e Revert "[Shadows] Deprecate MDCShadowElevationSwitch"
This reverts commit 30acb85b679693bbc4f1896c2185c730e346807f.
2018-01-02 17:14:00 -05:00
Ian Gordon
30acb85b67 [Shadows] Deprecate MDCShadowElevationSwitch 2018-01-02 17:10:02 -05:00
Yarden Eitan
6df22d2cd6
Update MaterialComponents podspec to separate extensions from component. Breaking change, please see description when sending out a new release (#2748)
* [Catalog] Update catalog readme to reflect podspec filename change

* upate podspec

* update spec to extension

* more specific dependency

* added documentation
2018-01-02 16:51:58 -05:00
Robert Moore
25de372807 [Tests/Catalog] Suppress partial availability warnings (#2780)
* [Tests] Suppress partial availability warnings

`- UIFont systemFontOfSize:weight:` was not introduced until iOS 8.2. Although
most of the code was already performing runtime checks on the selector, the
compiler still emits warnings for the use of the selectors.

Closes 2779

* Use systemFontOfSize: instead of fontWithName:size:
2018-01-02 13:59:38 -05:00
Robert Moore
ae955a3af0 [Dialogs] Add designated initializer to MDCAlertController (#2778)
* [Dialogs] Add designated initializer to MDCAlertController

If MDCAlertController does not override the superclasses designated
initializers, then its own designated initializer may never get called.
This can lead to problems.  Although the superclass designated
initializers are unavailable in MDCAlertController, they must still have
implementations.

Closes #2775

* Revert to original initialization.

* Add implementation for `-init` that calls the internal initializer

* Adding subclass test

* Removing keys intended for encoding
2018-01-02 13:58:42 -05:00
ianegordon
9987ff35b2
[Tabs] Update README.md
Add missing 'h'.
Thanks @LeChatNoir69 !
2018-01-02 13:41:24 -05:00
heinberg
5866de850c Use correct title label text property in README.md (#2776) 2018-01-02 09:41:02 -05:00