mirror of
https://github.com/material-components/material-components-ios.git
synced 2026-02-20 08:27:32 +08:00
586 B
586 B
Installation with CocoaPods
Add the following to your Podfile:
pod 'MaterialComponentsBeta/<#ComponentName#>'
Then, run the following command:
pod install
Importing
To use the MDCBannerView in your code, import the MaterialBanner umbrella header (Objective-C) or MaterialComponents module (Swift).
Swift
import MaterialComponents.MaterialBanner
Objective-C
#import "MaterialBanner.h"