{"id":16686013,"url":"https://github.com/mosheberman/scrollviewsnapshotter","last_synced_at":"2025-08-13T07:15:43.166Z","repository":{"id":139431024,"uuid":"55930245","full_name":"MosheBerman/ScrollViewSnapshotter","owner":"MosheBerman","description":"A demo project showing how to correctly snapshot the contents UIScrollView and its subclasses.","archived":false,"fork":false,"pushed_at":"2016-04-12T16:21:03.000Z","size":27,"stargazers_count":18,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T00:15:46.522Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MosheBerman.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}},"created_at":"2016-04-11T00:35:41.000Z","updated_at":"2022-04-04T01:55:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"0c4751dd-4b44-40c7-b45f-75fab4132ef7","html_url":"https://github.com/MosheBerman/ScrollViewSnapshotter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MosheBerman/ScrollViewSnapshotter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MosheBerman%2FScrollViewSnapshotter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MosheBerman%2FScrollViewSnapshotter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MosheBerman%2FScrollViewSnapshotter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MosheBerman%2FScrollViewSnapshotter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MosheBerman","download_url":"https://codeload.github.com/MosheBerman/ScrollViewSnapshotter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MosheBerman%2FScrollViewSnapshotter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270202663,"owners_count":24544383,"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-13T02:00:09.904Z","response_time":66,"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-10-12T15:04:15.770Z","updated_at":"2025-08-13T07:15:43.129Z","avatar_url":"https://github.com/MosheBerman.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ScrollViewSnapshotter\nA demo project showing how to correctly snapshot the contents UIScrollView and its subclasses.\n\nAbout:\n---\nHistorically, the suggested approach to snapshotting a scrollview was to resize the scroll view's  `frame` to match its `contentSize`. This became inconvenient with the introduction of autolayout on iOS.\n\nThis example scrolls through the contents of a scrollview subclass (in this case a collection view) and generates a PDF. \n\nThe magic comes from translating the core graphics current transformation matrix along with the `contentOffset`. Check out the ScrollViewSnapshotter class for implementation details and a ton of notes. Those notes are also available on [my blog](http://blog.mosheberman.com/generating-a-pdf-from-a-uiscrollview/).\n\nLicense:\n---\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmosheberman%2Fscrollviewsnapshotter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmosheberman%2Fscrollviewsnapshotter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmosheberman%2Fscrollviewsnapshotter/lists"}