{"id":20945160,"url":"https://github.com/tbxark/scrollviewthumbnail","last_synced_at":"2025-07-23T06:04:36.974Z","repository":{"id":62455028,"uuid":"123459182","full_name":"TBXark/ScrollViewThumbnail","owner":"TBXark","description":"Quickly create thumbnails for zoomed views in UIScrollview with just a single line of code.","archived":false,"fork":false,"pushed_at":"2018-03-01T17:21:50.000Z","size":2569,"stargazers_count":14,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-27T00:06:35.630Z","etag":null,"topics":["cocoapods","ios","swift","thumbnails","widget"],"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/TBXark.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}},"created_at":"2018-03-01T16:11:25.000Z","updated_at":"2024-01-23T11:07:40.000Z","dependencies_parsed_at":"2022-11-01T23:45:51.336Z","dependency_job_id":null,"html_url":"https://github.com/TBXark/ScrollViewThumbnail","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/TBXark/ScrollViewThumbnail","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TBXark%2FScrollViewThumbnail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TBXark%2FScrollViewThumbnail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TBXark%2FScrollViewThumbnail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TBXark%2FScrollViewThumbnail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TBXark","download_url":"https://codeload.github.com/TBXark/ScrollViewThumbnail/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TBXark%2FScrollViewThumbnail/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266626115,"owners_count":23958344,"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-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["cocoapods","ios","swift","thumbnails","widget"],"created_at":"2024-11-18T23:46:59.550Z","updated_at":"2025-07-23T06:04:36.953Z","avatar_url":"https://github.com/TBXark.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ScrollViewThumbnail\n\nQuickly create thumbnails for zoomed views in UIScrollview with just a single line of code.\n\n[![CI Status](http://img.shields.io/travis/TBXark/ScrollViewThumbnail.svg?style=flat)](https://travis-ci.org/TBXark/ScrollViewThumbnail)\n[![Version](https://img.shields.io/cocoapods/v/ScrollViewThumbnail.svg?style=flat)](http://cocoapods.org/pods/ScrollViewThumbnail)\n[![License](https://img.shields.io/cocoapods/l/ScrollViewThumbnail.svg?style=flat)](http://cocoapods.org/pods/ScrollViewThumbnail)\n[![Platform](https://img.shields.io/cocoapods/p/ScrollViewThumbnail.svg?style=flat)](http://cocoapods.org/pods/ScrollViewThumbnail)\n\n![](Example/demo.jpeg)\n\n![](Example/demo2.gif)\n\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n\n```swift\nclass ViewController: UIViewController, UIScrollViewDelegate {\n\n    let scrollview: UIScrollView = {\n        let sv = UIScrollView()\n        sv.minimumZoomScale = 0.5\n        sv.maximumZoomScale = 20\n        sv.contentSize = CGSize(width: UIScreen.main.bounds.width * 2, height: UIScreen.main.bounds.height * 2)\n        sv.frame = UIScreen.main.bounds\n        return sv\n    }()\n\n    let control: UIImageView = {\n       let v = UIImageView(image: UIImage(named: \"avatar\"))\n        v.frame = CGRect(x: 0,\n                         y: (UIScreen.main.bounds.height - UIScreen.main.bounds.width)/2,\n                         width: UIScreen.main.bounds.width,\n                         height: UIScreen.main.bounds.width)\n        return v\n    }()\n    let svt = ScrollViewThumbnailView(frame: CGRect(x: 0, y: UIScreen.main.bounds.height - 200, width: 200, height: 200))\n    \n    override func viewDidLoad() {\n        super.viewDidLoad()\n        automaticallyAdjustsScrollViewInsets = false\n        scrollview.delegate = self\n        \n        view.addSubview(scrollview)\n        view.addSubview(svt)\n        scrollview.addSubview(control)\n\n        // Just bind scrollview for  ScrollViewThumbnailView here.\n        svt.bindScrollView(scrollview)\n    }\n\n    override func didReceiveMemoryWarning() {\n        super.didReceiveMemoryWarning()\n    }\n    \n    func viewForZooming(in scrollView: UIScrollView) -\u003e UIView? {\n        return control\n    }\n}\n\n```\n\n## Requirements\n\niOS 8+, Swift 4, Xcode 9\n\n## Installation\n\nScrollViewThumbnail is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'ScrollViewThumbnail'\n```\n\n## Author\n\nTBXark, tbxark@outlook.com\n\n## License\n\nScrollViewThumbnail is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbxark%2Fscrollviewthumbnail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftbxark%2Fscrollviewthumbnail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbxark%2Fscrollviewthumbnail/lists"}