Commit da83ea12 authored by toby's avatar toby

allow user interaction

parent 320db704
......@@ -94,7 +94,6 @@ class ViewController: UIViewController {
}
private func animateBackground() -> Void {
println("animate background")
UIView.animateWithDuration(
self.backgroundTransition.duration,
delay: 0.0,
......@@ -107,7 +106,7 @@ class ViewController: UIViewController {
UIView.animateWithDuration(
0.25,
delay: 0.0,
options: UIViewAnimationOptions.CurveEaseInOut,
options: UIViewAnimationOptions.CurveEaseInOut | UIViewAnimationOptions.AllowUserInteraction,
animations: {
self.view!.backgroundColor = UIColor.whiteColor()
......@@ -118,7 +117,7 @@ class ViewController: UIViewController {
UIView.animateWithDuration(
0.25,
delay: 0.0,
options: UIViewAnimationOptions.CurveEaseInOut,
options: UIViewAnimationOptions.CurveEaseInOut | UIViewAnimationOptions.AllowUserInteraction,
animations: {
self.view!.backgroundColor = self.backgroundTransition.startColor
......
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