Library info contains programmatic access to information about the Material Components library.
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
The Library Info object provides information about the Material Components library compiled into this binary.
Before using LibraryInfo, you'll need to import it:
import MaterialComponents
#import "MaterialLibraryInfo.h"
LibraryInfo contains a singleton class of type LibraryInfo that can be queried.
print("This binary was compiled with MDC-iOS v" + MDCLibraryInfo.version + ".")
NSLog(@"This binary was compiled with MDC-iOS v%@.", MDCLibraryInfo.version);