{"id":20010125,"url":"https://github.com/cxa/webviewcontentpositioner","last_synced_at":"2025-08-02T10:36:06.362Z","repository":{"id":138076915,"uuid":"49212704","full_name":"cxa/WebViewContentPositioner","owner":"cxa","description":"Scroll position maintainer for UIWebView.","archived":false,"fork":false,"pushed_at":"2016-09-16T18:48:18.000Z","size":16,"stargazers_count":26,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-04T20:40:54.775Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cxa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-01-07T15:29:12.000Z","updated_at":"2022-01-29T10:52:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"ad302cda-42f2-4b33-ab08-8a796f03c6b7","html_url":"https://github.com/cxa/WebViewContentPositioner","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cxa/WebViewContentPositioner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxa%2FWebViewContentPositioner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxa%2FWebViewContentPositioner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxa%2FWebViewContentPositioner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxa%2FWebViewContentPositioner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cxa","download_url":"https://codeload.github.com/cxa/WebViewContentPositioner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxa%2FWebViewContentPositioner/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268372071,"owners_count":24239798,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T07:18:31.850Z","updated_at":"2025-08-02T10:36:06.348Z","avatar_url":"https://github.com/cxa.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WebViewContentPositioner\n\n`WebViewContentPositioner` is a scroll position maintainer for `UIWebView`. Never losing scroll position when view resizing on device rotation, split window changing, etc., even if view restoration.\n\n## How to Use\n\n1. Add the `WebViewContentPositioner` repository as a submodule of your application’s repository.\n2. Drag and drop `WebViewContentPositioner.xcodeproj` into your application’s Xcode project or workspace.\n3. On the “General” tab of your application target’s settings, add `WebViewContentPositioner.framework` to the “Embedded Binaries” section.\n\nOr, If you would prefer to use Carthage or CocoaPods, please pull request.\n\n`WebViewContentPositioner` tracks scroll position automatically for device rotation and split window size changing (by swizzling `- traitCollectionDidChange:`). Plus, you can save current position as a JSON String by `[UIWebView -currentPosition]` and restore by `[UIWebView -restorePosition:]` if needed.\n\nSee a real usage inside `Demo` folder.\n\n\n## Gotcha\n\n`WebViewContentPositioner` may fail if web page contains position-fixed elements on top. It's not intent to be used in a browser but EPUB reader like project.\n\n## About Me\n\n* Twitter: [@_cxa](https://twitter.com/_cxa)\n* Apps available in App Store: \u003chttp://lazyapps.com\u003e\n* PayPal: xianan.chen+paypal 📧 gmail.com, buy me a cup of coffee if you find it's useful for you.\n\n## License\n\n`DOMContentLoadedDelegate` is released under the MIT license. In short, it's royalty-free but you must keep the copyright notice in your code or software distribution.\n\nSome functions in JS are derived from [Firebug](https://github.com/firebug/firebug), it is free and open source software distributed under the BSD License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcxa%2Fwebviewcontentpositioner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcxa%2Fwebviewcontentpositioner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcxa%2Fwebviewcontentpositioner/lists"}