Adrian Secord b558c28e34 Clean up warning flags (#2456)
* Documented, clarified, and cleaned up warning flags.

* Fixed places where properties are missing `nonatomic`.

* Removed unused MDC_DEPRECATION_WARNINGS.

* Reviewer suggestions.

* Changed -Wshadow-all back to -Wshadow, since -Wshadow-all doesn't seem to be supported by Kokoro?
2017-11-20 11:16:46 -05:00
..
2017-11-20 11:16:46 -05:00
2017-11-15 14:46:41 -05:00

Installation

Requirements

  • Xcode 7.0 or higher.
  • iOS SDK version 7.0 or higher.

Installation with CocoaPods

To add this component to your Xcode project using CocoaPods, add the following to your Podfile:

pod 'MaterialComponents/LibraryInfo'

Then, run the following command:

pod install

Overview

The Library Info object provides information about the Material Components library compiled into this binary.


Usage

Importing

Before using LibraryInfo, you'll need to import it:

Swift

import MaterialComponents

Objective-C

#import "MaterialLibraryInfo.h"

Accessing the library information

LibraryInfo contains a singleton class of type LibraryInfo that can be queried.

Swift

print("This binary was compiled with MDC-iOS v" + MDCLibraryInfo.version + ".")

Objective-C

NSLog(@"This binary was compiled with MDC-iOS v%@.", MDCLibraryInfo.version);