Commit a959b06a by Daniel Dahan

updated MaterialView example

parent 2984dc02
...@@ -60,7 +60,8 @@ class ViewController: UIViewController { ...@@ -60,7 +60,8 @@ class ViewController: UIViewController {
let imageCardView: ImageCardView = ImageCardView() let imageCardView: ImageCardView = ImageCardView()
// Image. // Image.
imageCardView.image = UIImage.imageWithColor(MaterialColor.cyan.darken1, size: CGSizeMake(UIScreen.mainScreen().bounds.width - CGFloat(40), 150)) let size: CGSize = CGSizeMake(UIScreen.mainScreen().bounds.width - CGFloat(40), 150)
imageCardView.image = UIImage.imageWithColor(MaterialColor.cyan.darken1, size: size)
// Title label. // Title label.
let titleLabel: UILabel = UILabel() let titleLabel: UILabel = UILabel()
......
...@@ -366,7 +366,8 @@ Bold and attractive, ImageCardView is the next step from a CardView. In the Exam ...@@ -366,7 +366,8 @@ Bold and attractive, ImageCardView is the next step from a CardView. In the Exam
let imageCardView: ImageCardView = ImageCardView() let imageCardView: ImageCardView = ImageCardView()
// Image. // Image.
imageCardView.image = UIImage.imageWithColor(MaterialColor.cyan.darken1, size: CGSizeMake(UIScreen.mainScreen().bounds.width - CGFloat(40), 150)) let size: CGSize = CGSizeMake(UIScreen.mainScreen().bounds.width - CGFloat(40), 150)
imageCardView.image = UIImage.imageWithColor(MaterialColor.cyan.darken1, size: size)
// Title label. // Title label.
let titleLabel: UILabel = UILabel() let titleLabel: UILabel = UILabel()
......
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