lib/ios/sugarcube-animations/uiview.rb in sugarcube-2.7.0 vs lib/ios/sugarcube-animations/uiview.rb in sugarcube-2.7.1

- old
+ new

@@ -135,11 +135,11 @@ UIView.animate(options) do self.layoutIfNeeded end end - # Changes the layer opacity. + # Changes the view alpha. def fade(options={}, more_options={}, &after) if options.is_a? Numeric options = { opacity: options } end @@ -148,11 +148,11 @@ animate(options) do self.alpha = options[:opacity] end end - # Changes the layer opacity to 0. + # Changes the view alpha to 0. # @see #fade def fade_out(options={}, more_options={}, &after) if options.is_a? Numeric options = more_options.merge(duration: options) end @@ -160,11 +160,11 @@ options[:opacity] ||= 0.0 fade(options, &after) end - # Changes the layer opacity to 1. + # Changes the view alpha to 1. # @see #fade def fade_in(options={}, more_options={}, &after) if options.is_a? Numeric options = more_options.merge(duration: options) end @@ -172,10 +172,10 @@ options[:opacity] ||= 1.0 fade(options, &after) end - # Changes the layer opacity to 0 and then removes the view from its superview + # Changes the view alpha to 0 and then removes the view from its superview # @see #fade_out def fade_out_and_remove(options={}, more_options={}, &after) if options.is_a? Numeric options = more_options.merge(duration: options) end