* 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
* [ButtonBar] Refactor ButtonBarBuilder for testing
Pulling out part of the ButtonBarBuilder logic to start making it more
testable. Extracting the initial configuration of MDCButton from a
UIBarButtonItem into a class method and adding unit tests.
Layout hints for the first/last button bar items were using a macro to
check the flag. Macros are not preferred and should be replaced
wherever possible.
References #1682
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
Discussed merge with Ian offline. Issues with Travis CI may be resolved once the PR is merged.
* Add color to tiles.
* Add theming to catalog
* Update text field tile.
* Implementation method signatures should match those in header.
* Update MDCDrawFunc typedef
* Pass color scheme through NSNotification
* Add component theming
* Add tabbar themer
* Update tab example to use UIAppearance
* Theme sliders based on UIAppearance proxy
* Allow any class conforming to MDCColorScheme
* Override navigation bar color theme for imagery example.
* Update AppBar and ButtonBar color theming
* Update button bar themer comment
* Update button theming
* Remove theme imports where not necessary.
* Fix case of private
* [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
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
Summary:
The rendering mode is lost when an image is flipped with
-[UIImage imageWithCGImage:scale:orientation:].
When that would happen, actually render the image with it's orientation and
scale, port the template mode, and return that copy.
Closes https://github.com/google/material-components-ios/issues/592.
Test Plan:
Check that back arrow in Catalog is correctly flipped relative to the layout
direction.
Reviewers: randallli, O1 Material components iOS, iangordon
Reviewed By: randallli, O1 Material components iOS, iangordon
Tags: #material_components_ios
Differential Revision: http://codereview.cc/D1034
Summary:
Xcode 7 and iOS 9 SDK are requirement to use Material Components.
This commit removes the code that handles building with an SDK older
than the iOS 9 SDK (i.e. Base SDK).
Note that this does not change anything regarding the Deployment target,
i.e. the minimum OS version an app can run on.
Test Plan: Build with Xcode 7 and above, run with all OS versions from iOS 7 to iOS 10..
Reviewers: O1 Material components iOS, iangordon
Reviewed By: O1 Material components iOS, iangordon
Tags: #material_components_ios
Differential Revision: http://codereview.cc/D1024
Summary:
Prior to this CL, layoutDirection could be left uninitilized to 0. Being
explicit is more future-proof.
Closes https://github.com/google/material-components-ios/issues/544.
Also support building with older SDKs
Test Plan: Build and run on iOS 8. Nothing should have changed.
Reviewers: featherless, O1 Material components iOS, randallli
Reviewed By: O1 Material components iOS, randallli
Tags: #material_components_ios
Differential Revision: http://codereview.cc/D905
Summary: semanticContentAttribute is only available on iOS 9.
Test Plan: Launch Catalog on iOS 8.
Reviewers: iangordon, O1 Material components iOS
Reviewed By: iangordon, O1 Material components iOS
Tags: #material_components_ios
Differential Revision: http://codereview.cc/D902
Summary:
When the layout position is trailing, button items are now laid out in the
reverse order, to match UINavigationBar implementation.
This closes https://github.com/google/material-components-ios/issues/516.
Test Plan:
Have a button bar with MDCButtonBarLayoutPositionTrailing and 2 buttons.
Buttons should be laid out in the reverse order.
Reviewers: junius, #mdc_ios_owners, ajsecord
Reviewed By: #mdc_ios_owners, ajsecord
Projects: #material_components_ios
Differential Revision: http://codereview.cc/D875
Summary: Follow-up with https://github.com/google/material-components-ios/issues/511
Test Plan:
Apply the patch in #511
and check that Catalog > AppBar > AppBar (Swift) has all bar elements red.
Reviewers: #mdc_ios_owners, featherless
Reviewed By: #mdc_ios_owners, featherless
Projects: #material_components_ios
Differential Revision: http://codereview.cc/D883
Summary:
No apparent usage in the following blocking clients:
- Google.
Deleting these deprecated APIs as a result.
Reviewers: ajsecord, #mdc_ios_owners
Reviewed By: ajsecord, #mdc_ios_owners
Projects: #material_components_ios
Differential Revision: http://codereview.cc/D847