TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Jan 2015 |
Maintained by Vladimir Lyukov.
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.
Vladimir Lyukov, [email protected]
GLKAnimateWebViewFrame is available under the MIT license. See the LICENSE file for more info.