lib/ios/sugarcube-repl/repl.rb in sugarcube-2.8.0 vs lib/ios/sugarcube-repl/repl.rb in sugarcube-2.8.1
- old
+ new
@@ -70,13 +70,13 @@
else
@sugarcube_view.addSubview(blinking_view)
end
duration = 0.2
- NSView.animateWithDuration(duration * 2, animations: ->{ blinking_view.alpha = 1 }, completion: ->(finished) do
- NSView.animateWithDuration(duration, animations: ->{ blinking_view.alpha = 0 }, completion: ->(finished) do
- NSView.animateWithDuration(duration, animations: ->{ blinking_view.alpha = 1 }, completion: ->(finished) do
- NSView.animateWithDuration(duration, animations: ->{ blinking_view.alpha = 0 }, completion: ->(finished) do
+ UIView.animateWithDuration(duration * 2, animations: ->{ blinking_view.alpha = 1 }, completion: ->(finished) do
+ UIView.animateWithDuration(duration, animations: ->{ blinking_view.alpha = 0 }, completion: ->(finished) do
+ UIView.animateWithDuration(duration, animations: ->{ blinking_view.alpha = 1 }, completion: ->(finished) do
+ UIView.animateWithDuration(duration, animations: ->{ blinking_view.alpha = 0 }, completion: ->(finished) do
blinking_view.removeFromSuperview
end)
end)
end)
end)