Kokoro's Bazel version has been increased from 0.11.0 to 0.20.0 As part of this change, the `.kokoro` bazel header rewrite phase's rewrites for MDF libraries has been made less generic because MDFInternationalization can now be imported using framework-style imports as expected. MDFTextAccessibility does not yet have this functionality, so we still need to rewrite it. Version changes in the bazel workspace: - bazelbuild/rules_apple has been increased from 0.3.0 to 0.9.0 - bazel_skylib has been increased from 0.2.0 to 0.6.0 - bazelbuild/rules_swift has been added at 0.4.0 - xctestrunner has been increased from 0.2.1 to 0.2.5 - material_internationalization_ios has been increased from v1.0.4 to v2.0.1 - material_text_accessibility_ios has been increased from fd570d71ae0124c75ad5af00e6b8b4b1668d5e40 to v2.0.0 - motion_interchange_objc has been increased from v1.6.0 to v2.0.0 - motion_animator_objc has been increased from v2.5.0 to v3.0.0 - motion_transitioning_objc has been increased from v5.0.0 to v6.0.0 - Swift version has been pinned to 3 for all swift libraries. buildifier was ran on all affected build targets. This unblocks https://github.com/material-components/material-components-ios/pull/5550.
Material Components for iOS
Material Components for iOS (MDC-iOS) helps developers execute Material Design. Developed by a core team of engineers and UX designers at Google, these components enable a reliable development workflow to build beautiful and functional iOS apps. Learn more about how Material Components for iOS supports design and usability best practices across platforms in the Material Design Platform Adaptation guidelines.
Material Components for iOS are written in Objective-C and support Swift and Interface Builder.
Useful Links
- Documentation (external site)
- How To Use MDC-iOS
- All Components
- Demo Apps
- Contributing
- MDC-iOS on Stack Overflow (external site)
- Material.io (external site)
- Material Design Guidelines (external site)
- Checklist status spreadsheet
- Discord Chat Room
Trying out Material Components
CocoaPods is the easiest way to get started (if you're new to CocoaPods, check out their getting started documentation.)
To install CocoaPods, run the following commands:
sudo gem install cocoapods
Our catalog showcases Material Components. You can use the pod try command from anywhere on your machine to try the components, even if you haven't checked out the repo yet:
pod try MaterialComponents
In case you have already checked out the repo, run the following command:
pod install --project-directory=catalog/
The component implementations can be found in Xcode within Pods > Development Pods > MaterialComponents.
Requirements
- Xcode 9 or higher
- Minimum iOS deployment target of 8.0 or higher
- CocoaPods 1.5 or higher
Attributions
Material Components for iOS uses Material Design icons, copyright Google Inc. and licensed under CC BY 4.0.
Several components use MDFTextAccessibility, copyright Google Inc. and licensed under Apache 2.0 without a NOTICE file.
MDCCatalog uses the Roboto font, copyright 2011 Google Inc. and licensed under Apache 2.0 without a NOTICE file.