Commit 01b4a6d2 by Daniel Dahan

updating README

parent 9c9b96eb
...@@ -201,8 +201,8 @@ A BasicCardView can easily add an image as its background, below is the code tha ...@@ -201,8 +201,8 @@ A BasicCardView can easily add an image as its background, below is the code tha
```swift ```swift
let v: BasicCardView = BasicCardView(titleLabel: UILabel(), detailLabel: UILabel())! let v: BasicCardView = BasicCardView(titleLabel: UILabel(), detailLabel: UILabel())!
v.spotlight = true
v.image = UIImage(named: "space") v.image = UIImage(named: "img3")
v.titleLabel!.textColor = MaterialColor.white v.titleLabel!.textColor = MaterialColor.white
v.titleLabel!.font = RobotoFont.regularWithSize(18) v.titleLabel!.font = RobotoFont.regularWithSize(18)
...@@ -214,7 +214,8 @@ v.detailLabel!.lineBreakMode = .ByWordWrapping ...@@ -214,7 +214,8 @@ v.detailLabel!.lineBreakMode = .ByWordWrapping
v.detailLabel!.numberOfLines = 0 v.detailLabel!.numberOfLines = 0
v.detailLabel!.text = "I am a very simple card. I am good at containing small bits of information. I am convenient because I require little code to use effectively." v.detailLabel!.text = "I am a very simple card. I am good at containing small bits of information. I am convenient because I require little code to use effectively."
// Add to UIViewController.
// Add to UIViewController
view.addSubview(v) view.addSubview(v)
v.translatesAutoresizingMaskIntoConstraints = false v.translatesAutoresizingMaskIntoConstraints = false
MaterialLayout.alignToParentHorizontallyWithInsets(view, child: v, left: 20, right: 20) MaterialLayout.alignToParentHorizontallyWithInsets(view, child: v, left: 20, right: 20)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment