Latest 0.1.0
Homepage https://github.com/glyuck/GLKAnimateWebViewFrame
License MIT
Platforms ios 7.0, requires ARC
Frameworks UIKit
Authors

[![CI Status](http://img.shields.io/travis/Vladimir Lyukov/GLKAnimateWebViewFrame.svg?style=flat)](https://travis-ci.org/Vladimir Lyukov/GLKAnimateWebViewFrame)
Version
License
Platform

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.

example video

Usage

#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.

Requirements

Installation

GLKAnimateWebViewFrame is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "GLKAnimateWebViewFrame"

Author

Vladimir Lyukov, [email protected]

License

GLKAnimateWebViewFrame is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "GLKAnimateWebViewFrame",
    "version": "0.1.0",
    "summary": "Smoothly animate UIWebView frame.",
    "description": "                       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.n                       This library tries to fix this issue by animating webView content size via JavaScript, then changing webView.frame after JS animation finished.n",
    "homepage": "https://github.com/glyuck/GLKAnimateWebViewFrame",
    "license": "MIT",
    "authors": {
        "Vladimir Lyukov": "[email protected]"
    },
    "source": {
        "git": "https://github.com/glyuck/GLKAnimateWebViewFrame.git",
        "tag": "0.1.0"
    },
    "social_media_url": "https://twitter.com/glyuck",
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes",
    "public_header_files": "Pod/Classes/**/*.h",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This