0

I'm trying to animate an instance of UITextView to expand and collapse some text but what happens is that the text view gets resized with a new height right away and its position animates. Ideally I'd want both properties to animate for smoother animation.

[UIView animateWithDuration:kCaptionAnimationDuration * 10
                 animations:^{
                     [self->_caption setFrame:self->_truncatedCaptionFrame];
                 }
                 completion:^(BOOL finished){
                     self->_displayingFullCaption = NO;
                 }];

How can I get the height to slowly animate instead?

MichaelGofron
  • 1,310
  • 4
  • 15
  • 29

0 Answers0