Latest 1.1.4
Homepage https://github.com/NathanWalker/MaterialCard
License MIT
Platforms ios 8.0, requires ARC
Authors

Version
License
Platform

An iOS CocoaPod that provides a MaterialCard class for creating Card Views based on the Material Design spec.

Screenshot
Sample1

Installation

MaterialCard is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "MaterialCard"

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

let card = MaterialCard(frame: CGRect(x: 10, y: UIApplication.shared.statusBarFrame.size.height + 10, width: UIApplication.shared.statusBarFrame.size.width - 20, height: 100))

let label = UILabel(frame: CGRect(x: 0, y: 37, width: c.frame.size.width, height: 21))
label.textAlignment = NSTextAlignment.Center
label.text = "MaterialCard Demo"

card.backgroundColor = UIColor.white
card.shadowOpacity = 0.2
card.shadowOffsetHeight = 0
card.cornerRadius = 0
card.addSubview(label)

self.view.addSubview(card)

Authors

License

MaterialCard is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "MaterialCard",
    "version": "1.1.4",
    "summary": "iOS Material Design Card View.",
    "description": "An iOS CocoaPod that provides a MaterialCard class for creating Card Views based on the Material Design spec.n```swiftnlet card = MaterialCard(frame: CGRect(x: 10, y: UIApplication.shared.statusBarFrame.size.height + 10, width: UIApplication.shared.statusBarFrame.size.width - 20, height: 100))nview.addSubview(card)n```",
    "homepage": "https://github.com/NathanWalker/MaterialCard",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Nathan Walker": "[email protected]"
    },
    "source": {
        "git": "https://github.com/NathanWalker/MaterialCard.git",
        "tag": "1.1.4"
    },
    "social_media_url": "https://twitter.com/wwwalkerrun",
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "MaterialCard/Classes/**/*",
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "3.0"
    }
}

Pin It on Pinterest

Share This