[![CI Status](http://img.shields.io/travis/Vladimir Lyukov/GLKAnimateWebViewFrame.svg?style=flat)](https://travis-ci.org/Vladimir Lyukov/GLKAnimateWebViewFrame)
Workaround to enable animating UIWebView height. If you try to animate UIWebView.frame via standart [UIView animateWithDuration:animations]
, no animation will occur, webView's content will immediately jump to it's final frame.
This library tries to fix this issue by animating webView content size via JavaScript, then changing webView.frame after JS animation finished.
#import "UIWebView+GLKAnimateFrame.h"
...
- (void)myAction {
[self.webView glk_animateToHeight:200 duration:0.4];
}
To run the example project, clone the repo, and run pod install
from the Example directory first.
GLKAnimateWebViewFrame is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "GLKAnimateWebViewFrame"
Vladimir Lyukov, [email protected]
GLKAnimateWebViewFrame is available under the MIT license. See the LICENSE file for more info.