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
Right now, _viewsToHideWhenShifted are only hidden for MDCFlexibleHeaderShiftBehaviorEnabled. Changed the condition so that they will hide for both MDCFlexibleHeaderShiftBehaviorEnabled and MDCFlexibleHeaderShiftBehaviorEnabledWithStatusBar.
* [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.
* [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
* 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.
* 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
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.
Both MDCInkLayer (and MDCLegacyInkLayer) and MDCInkView should support
NSCoding methods since their superclasses conform to an NSCoding (or
NSSecureCoding) protocol.
Closes#2772
* [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:
* [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