* Use framework-style imports.
MDFInternationalization is built as a framework, so use the style
recommended to import from the framework (#import <...>).
MotionAnimator and MotionInterchange mixed the normal style import
and the framework style import; settle them on the framework style.
* Update MDCActivityIndicator.m
Re-order to match our style guide.
* Update MDCBottomNavigationBar.m
Re-order to match our style guide.
* Update MDCBottomNavigationItemView.m
Re-order to match style guide.
* Update MDCBottomAppBarView.m
* Update MDCButtonBar.m
* Update MDCAppBarButtonBarBuilder.m
* Update MDCAppBarButtonBarBuilder.m
* Update MDCCollectionViewCell.m
* Update MDCAlertController.m
* Update NavigationBarIconsExample.m
* Update MDCNavigationBar.m
* Update MDCItemBarCell.m
* Update MDCTextField.m
* Update MDCThumbTrack.m
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
MDCCollectionViewTextCell has a few #define maros that are named like
constants but expand into method invocations. Replacing these with
static inline functions.
References #1682
Collection cell accessory views set to "Disclosure Indicator" will now
use template mode and will utilize the tinting of the cell/collection
view.
Closes#1575
The `-setSelected:` method reassigns the selection icon image every time
a cell is dequeued/reused. Since most cells are unselected most of the
time, this results in a lot of unnecessary UIImage calls. Only updating
the selected/unselected image if the view exists (it won't until
initially changed to Editing Mode) and if the state has changed.
Closes#1708
MDCCollectionViewTextCell computes the frames of the two UILabel subviews to determine their size, then again to determine how many lines of text will be in the cell. Instead of computing the frames twice, the first computation will simply be reused.
Closes#1699
MDCCollectionViewTextCells will no longer trim their label widths to the
width of the rendered text and will extend to the width of the
contentWrapper. This allows textAlignment properties to be effective
for lines shorter than the contentWrapper width.
Closes#1632
* [Icons] Add icon method for use with imageNamed
Icon images are currently loaded manually from a path in a bundle and therefore bypass the internal UIImage caching mechanism. This change will add new methods that provide the icon images via the -imageNamed family of methods.
Closes#1637, #1606
Make the code base more portable by replacing some GNU extension code
with C99-compatible versions.
* Replace shortcut ?: operator with explicit middle (true) terms
* Remove pointer inequality checks in conditionals
* (Cleanup) Change to #include for <tgmath.h> based on style guide
Closes#846
* [ColorThemes] Use umbrella header instead of MDCColorScheme
* [Application] Use umbrella header instead of class header
* [Button] use umbrella header in private header
* [Typography] use umbrella header in private header
* icons using umbrella header in individual icon class
* [Icons] added header to umbrella header
* [collection] umbrella header instead of class header in test
* [Collections] use umbrella header in private header
* [ActivityIndicator] use umbrella header in private header
* [ButtonBar] use umbrella header in private header
* [Dialog] use umbrella header in private header
* [featurehighlight] use umbrella header in private header
* [snackbar] use umbrella header in private header
* [textFields] use umbrella header in private header
* [thumbtrack] use umbrella header in private header
* [Overlay] use umbrella header in private header
also removed spurious ’s’ at end of MaterialOverlay.h file
* [slider] use umbrella header in private header
* [buttonBar] use umbrella header in private header
* [slider] use umbrella header in test
* [Overlay] fixed overlay reference to use umbrella header
* [Docs] Marks component files as API documentation roots.
Used by the site generator to determine where to build API docs. I
marked everything built by the previous version.
* [Docs] Adds a prefix to all Material guidelines links.
* [Docs] Adds API doc links to some components.
* [Docs] Adds platform configuration for the doc site.
* [Docs] Adds path metadata for documentation site.
This field is used to determine where the file will appear in the
doc site.
* [Docs] Updates Material guideline links to latest URL.
material.google.com -> material.io/guidelines
* [Docs] Introduces a separate component index for the docsite.
* [Docs] Changes the directory used for site generation.
* [Docs] Moves documentation-site-only Markdown into its own directory.
* [Docs] Changes material.io links to use https.
* [Docs] Renames the howto and contributing docsite sections to docs.
* [Docs] Adds a navTitle field to the collection editing/styling pages.
* [Docs] Changes the FAQ heading to be one size bigger.
* [Docs] Changes the tutorial title.
* [Docs] Adds icons to three more components.
* [Docs] Introduces a root component directory called /catalog/.
* [Docs] Adds an icon to the AnimationTiming component.
* [Docs] Adds an icon for the typography component.
* [Docs] Reformats the docsite index.
There are more changes to come, but it's time we merged back.
Changes:
* Re-introduces the doc site scripts and files that had been deleted previously.
* Updates contributing docs to reflect doc structure changes.
* Applies common header structure across all component documentation.
* Fixes a bunch of liquid syntax bugs.
* Inlines Front Matter metadata in README.md files as HTML comments. Any file prefixed with
<!--docs:
...yaml
-->
Will be converted into Front Matter when generating the site.
* .jekyll_prefix files, which previously stored the data, have been removed.
* [CollectionCells] Add accessibility hint in edit mode
When editing, selectable/deselectable cells now give an accessibility
hint: "Double tap to select.". This helps users to know what they can do
while in edit mode.
Related: https://github.com/material-components/material-components-ios/issues/1257
* Add tests
* [Collections] - Initial changes
* [Ink] - Updated MDCInkLayer to allow for multiple foreground and background ripples that stay referenced as opposed to one and one.
* [Ink] - Code cleanup, indentions, removed unused properties
* [Ink] - Line character counts
* [Ink] - More code cleanup, renaming, line spacing
* [Ink] - Updated docs
* [Ink] - Renamed methods
* [Ink] - Added state of cancelled for ink to prevent completion block calling
* [Ink] - Moved some api to private, updated completion blocks to incorporate weakSelf/strongSelf
* [Ink] - Removed testing and example code
* [Ink] - Additional demo code removed
* [Ink] - Broke retain cycle in ink
* [Ink] - Prevent over removal of ink layers caused by animation delegate being called on animation end AND removal
* [Ink] - Pulled completion block setting out if not needed
* [Ink] - Updated naming convention
* [Ink] - Addressing comments (possible crash on setting inkView to nil on collection cell, naming)
* [Ink] - Added easy out on setInkView method, styling for property declarations
* [Ink] - Renamed clearAllAnimations method to get in tandem with removeAllAnimations method on super class of CALayer
* [Ink] - Removed dependence on indexing for unedited ripples and rather using array count property
Moves call to layoutForegroundSubviews to follow call to
updateInterfaceForEditing to prevent the case where as the user
scrolls down in editing mode, the editing controls animate in and
cover parts of the content view.
BUG=988
Summary:
When the accessory type is Checkmark, the accessibility trait Selected
is added.
This closes
https://github.com/google/material-components-ios/issues/840.
Reviewers: cjcox, ajsecord, O1 Material components iOS
Reviewed By: ajsecord, O1 Material components iOS
Tags: #material_components_ios
Differential Revision: http://codereview.cc/D1883