Modular and customizable Material Design UI components for iOS
Switch branches/tags
Clone or download
andrewoverton Position handle using NSLayoutConstraints (#5760)
The problem:
Under certain circumstances so far only reproducible in an internal app (hence the lack of screenshots) the bottom drawer's "handle" would not be visible. This was due to autoresizing masks not behaving the way we expect them to.

The solution:
Position the handle with NSLayoutConstraints.

Closes #5712.
Latest commit deac15a Nov 15, 2018
Permalink
Failed to load latest commit information.
.github/ISSUE_TEMPLATE Add API deprecation issue template (#4803) Aug 20, 2018
catalog Merge branch 'release-candidate' into develop Nov 7, 2018
components Position handle using NSLayoutConstraints (#5760) Nov 15, 2018
contributing [releasing] Add link to internal release engineering docs (#5383) Oct 10, 2018
demos Bumped version number to 68.2.0. Nov 7, 2018
docs [Docs] Updated the cocoapods version we are using. (#5595) Nov 5, 2018
scripts No longer using `-init` for Color Scheme. (#5734) Nov 12, 2018
.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
.codecov.yml Add Codecov config to exclude uninteresting paths. (#1118) Dec 28, 2016
.gitignore Ignore gh-pages. May 30, 2018
.gitmodules [kokoro] Migrate github-comment and clang-format-ci to the material-f… Nov 9, 2018
.kokoro [kokoro] Migrate github-comment and clang-format-ci to the material-f… Nov 9, 2018
.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 updated to "cocoapods" Oct 8, 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 API diff. Nov 7, 2018
CODEOWNERS Add @andrewoverton as owner of List Oct 12, 2018
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 [PageControl] Add respectsUserInterfaceLayoutDirection to MDCPageCont… Nov 14, 2018
MaterialComponentsAlpha.podspec Bumped version number to 68.2.0. Nov 7, 2018
MaterialComponentsEarlGreyTests.podspec Bumped version number to 68.2.0. Nov 7, 2018
MaterialComponentsExamples.podspec Bumped version number to 68.2.0. Nov 7, 2018
PULL_REQUEST_TEMPLATE.md [Docs] Correcting PR template (#3031) Mar 6, 2018
README.md Bump minimum supported Xcode to 9 (#4872) Aug 22, 2018
ROADMAP.md [Docs] Roadmap update (#1065) Dec 14, 2016
VERSION Bumped version number to 68.2.0. Nov 7, 2018
WORKSPACE Bump MotionInterchange to 1.6.0 (#5723) Nov 9, 2018
material_components_ios.bzl update kokoro to 9.0.0 (#4986) Aug 31, 2018
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 Chat

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.