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?