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, ={}, &after) if .is_a? Numeric = { duration: } end [:after] = after animate() do self.frame = frame end end |