Commit 8b24655c by Daniel Dahan

updated README with new animations

parent f59dc603
...@@ -144,30 +144,31 @@ class ViewController: UIViewController { ...@@ -144,30 +144,31 @@ class ViewController: UIViewController {
cardView.dividerInsetsRef.left = 100 cardView.dividerInsetsRef.left = 100
cardView.titleLabelInsetsRef.left = 100 cardView.titleLabelInsetsRef.left = 100
cardView.detailLabelInsetsRef.left = 100 cardView.detailLabelInsetsRef.left = 100
cardView.pulseColor = MaterialColor.teal.lighten4
// Image. // Image.
cardView.image = UIImage(named: "MaterialKitCardViewBackgroundImage")?.resize(toWidth: 300) cardView.image = UIImage(named: "GraphKit")?.resize(toWidth: 300)
cardView.contentsGravity = .TopLeft cardView.contentsGravity = .TopLeft
// Title label. // Title label.
let titleLabel: UILabel = UILabel() let titleLabel: UILabel = UILabel()
titleLabel.text = "Focus" titleLabel.text = "GraphKit"
titleLabel.font = RobotoFont.mediumWithSize(24) titleLabel.font = RobotoFont.mediumWithSize(24)
cardView.titleLabel = titleLabel cardView.titleLabel = titleLabel
// Detail label // Detail label
let detailLabel: UILabel = UILabel() let detailLabel: UILabel = UILabel()
detailLabel.text = "Easily organize your thoughts using hashtags." detailLabel.text = "Build scalable data-driven apps."
detailLabel.numberOfLines = 0 detailLabel.numberOfLines = 0
cardView.detailLabel = detailLabel cardView.detailLabel = detailLabel
// ITUNES button. // LEARN MORE button.
let btn1: FlatButton = FlatButton() let btn1: FlatButton = FlatButton()
btn1.pulseColor = MaterialColor.blue.lighten1 btn1.pulseColor = MaterialColor.teal.lighten1
btn1.pulseFill = true btn1.pulseFill = true
btn1.pulseScale = false btn1.pulseScale = false
btn1.setTitle("ITUNES", forState: .Normal) btn1.setTitle("LEARN MORE", forState: .Normal)
btn1.setTitleColor(MaterialColor.blue.darken1, forState: .Normal) btn1.setTitleColor(MaterialColor.teal.darken1, forState: .Normal)
// Add buttons to right side. // Add buttons to right side.
cardView.rightButtons = [btn1] cardView.rightButtons = [btn1]
......
...@@ -240,7 +240,7 @@ class ViewController: UIViewController { ...@@ -240,7 +240,7 @@ class ViewController: UIViewController {
let navigationBarView: NavigationBarView = NavigationBarView() let navigationBarView: NavigationBarView = NavigationBarView()
// Stylize. // Stylize.
navigationBarView.backgroundColor = MaterialColor.indigo.darken1 navigationBarView.backgroundColor = MaterialColor.blue.darken1
// To lighten the status bar add the "View controller-based status bar appearance = NO" // To lighten the status bar add the "View controller-based status bar appearance = NO"
// to you info.plist file and set the following property. // to you info.plist file and set the following property.
......
...@@ -30,7 +30,7 @@ Easily remove the pulse animation and add a background image for an entirely new ...@@ -30,7 +30,7 @@ Easily remove the pulse animation and add a background image for an entirely new
Adjust the alignment of the UI elements to create different configurations of the CardView. Adjust the alignment of the UI elements to create different configurations of the CardView.
![MaterialKitCardViewFocus](http://www.materialkit.io/MK/MaterialKitCardViewFocus.gif) ![MaterialKitCardViewDataDriven](http://www.materialkit.io/MK/MaterialKitCardViewDataDriven.gif)
### ImageCardView ### ImageCardView
......
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