Method: UIView#reframe_to

Defined in:
lib/sugarcube-animations/uiview.rb

#reframe_to(frame, options = {}, &after) ⇒ Object



202
203
204
205
206
207
208
209
210
211
212
# File 'lib/sugarcube-animations/uiview.rb', line 202

def reframe_to(frame, options={}, &after)
  if options.is_a? Numeric
    options = { duration: options }
  end

  options[:after] = after

  animate(options) do
    self.frame = frame
  end
end