Commit ea197a26 by Daniel Dahan

updated MaterialPulseView example

parent 5d99fd55
{
"images" : [
{
"idiom" : "universal",
"filename" : "ContentAppIcon.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
......@@ -44,10 +44,10 @@ class ViewController: UIViewController {
let materialPulseView: MaterialPulseView = MaterialPulseView(frame: CGRectMake(132, 132, 150, 150))
materialPulseView.shape = .Circle
materialPulseView.shadowDepth = .Depth2
materialPulseView.image = UIImage(named: "CosmicMind")
materialPulseView.image = UIImage(named: "ContentAppIcon")
materialPulseView.backgroundColor = MaterialColor.teal.darken1
// Add view to view controller.
// Add view to UIViewController.
view.addSubview(materialPulseView)
}
}
......
......@@ -45,6 +45,19 @@ view.addSubview(materialView)
MaterialPulseView is at the heart of all pulse animations. Any view that subclasses MaterialPulseView instantly inherits the pulse animation with full customizability.
![MaterialKitMaterialPulseView](http://www.materialkit.io/MK/MaterialKitMaterialPulseView.gif)
```swift
let materialPulseView: MaterialPulseView = MaterialPulseView(frame: CGRectMake(132, 132, 150, 150))
materialPulseView.shape = .Circle
materialPulseView.shadowDepth = .Depth2
materialPulseView.image = UIImage(named: "ContentAppIcon")
materialPulseView.backgroundColor = MaterialColor.teal.darken1
// Add view to UIViewController.
view.addSubview(materialPulseView)
```
### FlatButton
A FlatButton is the best place to start when introducing MaterialKit buttons. It is simple, clean, and very effective. Below is an example of a FlatButton in action.
......
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