Commit 87e77892 by Daniel Dahan

minor syntax update

parent f5ae321d
...@@ -502,9 +502,7 @@ public class MaterialButton : UIButton { ...@@ -502,9 +502,7 @@ public class MaterialButton : UIButton {
internal func shrinkAnimation() { internal func shrinkAnimation() {
if pulseScale { if pulseScale {
var t: CFTimeInterval = CFTimeInterval(1.5 * width / UIScreen.mainScreen().bounds.width) var t: CFTimeInterval = CFTimeInterval(1.5 * width / UIScreen.mainScreen().bounds.width)
if 0.55 < t { if 0.55 < t || 0.25 > t {
t = 0.55
} else if 0.25 > t {
t = 0.55 t = 0.55
} }
t /= 1.3 t /= 1.3
......
...@@ -160,9 +160,7 @@ public class MaterialPulseView : MaterialView { ...@@ -160,9 +160,7 @@ public class MaterialPulseView : MaterialView {
internal func shrinkAnimation() { internal func shrinkAnimation() {
if pulseScale { if pulseScale {
var t: CFTimeInterval = CFTimeInterval(1.5 * width / UIScreen.mainScreen().bounds.width) var t: CFTimeInterval = CFTimeInterval(1.5 * width / UIScreen.mainScreen().bounds.width)
if 0.55 < t { if 0.55 < t || 0.25 > t {
t = 0.55
} else if 0.25 > t {
t = 0.55 t = 0.55
} }
t /= 1.3 t /= 1.3
......
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