Modular and customizable Material Design UI components for iOS
Clone or download
romoore [Dialogs] Fix Theming extension for presentation controller. (#6418)
The theming extension for MDCDialogPresentationController used
`primaryColor` instead of `onSurfaceColor` @ 32%.

Added a test to verify that the AlertController and
PresentationController theming extensions result in the same
scrim-related theming values.

|Before|After|
|---|---|
|![present-bug](https://user-images.githubusercontent.com/1753199/51408900-300b4000-1b2e-11e9-854c-4c8c299ebc40.png)|![present-fix](https://user-images.githubusercontent.com/1753199/51408911-3994a800-1b2e-11e9-91c1-e2e50c2019a6.png)|

Closes #6417
Latest commit fbd8852 Jan 18, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE Add API deprecation issue template (#4803) Aug 20, 2018
catalog [Catalog] Add MDCActionExtension BUILD file (#6406) Jan 18, 2019
components [Dialogs] Fix Theming extension for presentation controller. (#6418) Jan 18, 2019
contributing {Releasing} Add step for `.gitattributes` to documentation. (#6352) Jan 16, 2019
demos Bumped version number to 74.0.0. Jan 16, 2019
docs [Docs] Updated the cocoapods version we are using. (#5595) Nov 5, 2018
scripts {kokoro} Detect snapshot tests missing bazel support. (#6324) Jan 16, 2019
snapshot_test_goldens/goldens_64 [TextFields] Fix "gap" in outline when placeholder is empty. (#6322) Jan 18, 2019
.arclint Add autoresizingMask to list of line length exceptions. Apr 26, 2016
.arcunit Only run unit tests when component src or tests change. Apr 12, 2016
.clang-format Added include sorting to clang-format. Jun 17, 2016
.clang-format-ci Extract clang-format-ci to a separate command. (#5800) Nov 20, 2018
.codecov.yml Add Codecov config to exclude uninteresting paths. (#1118) Dec 28, 2016
.gitattributes Update .gitattributes (#6285) Jan 11, 2019
.gitignore Extract clang-format-ci to a separate command. (#5800) Nov 20, 2018
.gitmodules [kokoro] Extract more of the clang-format logic out to clang-format-c… Nov 20, 2018
.kokoro [Catalog] Add MDCCatalog to bazel. (#6412) Jan 18, 2019
.mdc-docsite.yml [Docs] Adds API documentation roots and tidies up here and there. (#1425 May 12, 2017
.swift-version Fixed mysterious CocoaPods header_mapping_dir issue that was blocking… Dec 15, 2016
.swiftlint.yml More SwiftLint fixes for unit tests and example apps. (#1154) Jan 11, 2017
.travis.yml Snapshot Testing Proof of Concept (#5887) Dec 5, 2018
AUTHORS Adding AUTHORS and removing CONTRIBUTORS.txt. Aug 8, 2016
BUILD Initial addition of kokoro and bazel continuous integration support. (#… Nov 1, 2017
CHANGELOG.md Hand-modified CHANGELOG.md Jan 16, 2019
CODEOWNERS [Ripple] Make @yarneo CODEOWNER (#6319) Jan 14, 2019
CODE_OF_CONDUCT.md Added GitHub preferred code of conduct file. (#1642) Jul 13, 2017
CONTRIBUTING.md [Contributing] Cleaning up link Dec 14, 2016
ISSUE_TEMPLATE.md [Docs] New all CTA Issue template (#1051) Dec 14, 2016
LICENSE Adding AUTHORS and removing CONTRIBUTORS.txt. Aug 8, 2016
MaterialComponents.podspec Bumped version number to 74.0.0. Jan 16, 2019
MaterialComponentsBeta.podspec Bumped version number to 74.0.0. Jan 16, 2019
MaterialComponentsEarlGreyTests.podspec Bumped version number to 74.0.0. Jan 16, 2019
MaterialComponentsExamples.podspec Bumped version number to 74.0.0. Jan 16, 2019
MaterialComponentsSnapshotTests.podspec Bumped version number to 74.0.0. Jan 16, 2019
PULL_REQUEST_TEMPLATE.md [Docs] Correcting PR template (#3031) Mar 6, 2018
README.md {README} Remove Discord link (#6191) Jan 9, 2019
ROADMAP.md [Docs] Roadmap update (#1065) Dec 14, 2016
VERSION Bumped version number to 74.0.0. Jan 16, 2019
WORKSPACE [Catalog] {MDCDragons} Add bazel build target. (#6409) Jan 18, 2019
material_components_ios.bzl {kokoro} Deflake snapshot tests on kokoro (#6333) Jan 16, 2019
mdc_hero.png [Docs] Add hero image to top-level README.md (#1100) Dec 21, 2016

README.md

Material Components for iOS

Build Status Code coverage

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

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.