{"id":15286872,"url":"https://github.com/iliuchang/lcinfinitescrollview","last_synced_at":"2025-08-14T05:06:36.203Z","repository":{"id":37768963,"uuid":"329536392","full_name":"iLiuChang/LCInfiniteScrollView","owner":"iLiuChang","description":"An infinite-scroll banner implemented with two views, includes Swift and Objective-C APIs.","archived":false,"fork":false,"pushed_at":"2023-12-22T04:17:18.000Z","size":768,"stargazers_count":190,"open_issues_count":0,"forks_count":8,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-07-14T02:04:55.510Z","etag":null,"topics":["banner","infinite-scroll","ios","objective-c","swift","uiscrollview"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","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/iLiuChang.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":"2021-01-14T07:14:46.000Z","updated_at":"2025-06-07T14:30:03.000Z","dependencies_parsed_at":"2024-10-31T13:00:37.915Z","dependency_job_id":"755f351e-0be7-43f9-a26c-8dbabf82cc10","html_url":"https://github.com/iLiuChang/LCInfiniteScrollView","commit_stats":{"total_commits":16,"total_committers":3,"mean_commits":5.333333333333333,"dds":0.4375,"last_synced_commit":"160ae06cae32dbdd437facc2cfaffa745bf18b46"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/iLiuChang/LCInfiniteScrollView","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLiuChang%2FLCInfiniteScrollView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLiuChang%2FLCInfiniteScrollView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLiuChang%2FLCInfiniteScrollView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLiuChang%2FLCInfiniteScrollView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iLiuChang","download_url":"https://codeload.github.com/iLiuChang/LCInfiniteScrollView/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLiuChang%2FLCInfiniteScrollView/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270364971,"owners_count":24571423,"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-14T02:00:10.309Z","response_time":75,"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":["banner","infinite-scroll","ios","objective-c","swift","uiscrollview"],"created_at":"2024-09-30T15:18:48.016Z","updated_at":"2025-08-14T05:06:36.137Z","avatar_url":"https://github.com/iLiuChang.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LCInfiniteScrollView\nAn infinite scroll control implemented with two views, supporting custom reuse of views.\n\n![infinite-scroll](https://raw.githubusercontent.com/iLiuChang/LCInfiniteScrollView/main/Images/infinite.gif)\n\n## Requirements\n\n- **Objective-C**\n\n  - **iOS 8.0+**\n\n    \n\n- **Swift**\n  - **iOS 9.0+**\n  - **Swift 4.0+**\n\n## Features\n\n- Supports infinite scrolling.\n- Reuse with two views.\n- Support for custom reuse views.\n\n## Usage\n\n### Init\n\n- **Objective-C**\n\n```objective-c\nLCInfiniteScrollView *v = [[LCInfiniteScrollView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 300)];\nv.backgroundColor = UIColor.brownColor;\nv.delegate = self;\nv.autoScroll = YES;\n[self.view addSubview:v];\n```\n\n- **Swift**\n\n```swift\nlet banner = LCInfiniteScrollView(frame: CGRect(x: 0, y: 0, width: self.view.frame.size.width, height: 200))\nbanner.delegate = self\nbanner.autoScroll = true\nself.view.addSubview(banner)\n```\n\n### Custom reuse view\n\n- **Objective-C**\n\n```objective-c\n- (UIView *)reusableViewInInfiniteScrollView:(LCInfiniteScrollView *)infiniteScrollView {\n    UILabel *label = [UILabel new];\n    label.font = [UIFont boldSystemFontOfSize:30];\n    label.textAlignment = NSTextAlignmentCenter;\n    return label;\n}\n\n- (void)infiniteScrollView:(LCInfiniteScrollView *)infiniteScrollView displayReusableView:(UIView *)reusableView atIndex:(NSInteger)index {\n    UILabel *label = (UILabel *)reusableView;\n    label.text = @(index).stringValue;\n    label.backgroundColor = (UIColor *)self.colors[index];\n}\n```\n\n- **Swift**\n\n```swift\nfunc infiniteScrollView(_ infiniteScrollView: LCInfiniteScrollView, displayReusableView view: UIView, forIndex index: Int) {\n    view.backgroundColor = colors[index]\n}\n\nfunc reusableView(in infiniteScrollView: LCInfiniteScrollView) -\u003e UIView {\n    return UIView()\n}\n```\n\n## Installation\n\n### CocoaPods\n\nTo integrate LCInfiniteScrollView into your Xcode project using CocoaPods, specify it in your `Podfile`:\n\n- **Objective-C**\n\n```ruby\npod 'LCInfiniteScrollView'\n```\n\n- **Swift**\n\n```ruby\npod 'SwiftInfiniteScrollView'\n```\n\n### Manual\n\n- **Objective-C**\n\n1. Download everything in the LCInfiniteScrollView folder;\n2. Add (drag and drop) the source files in LCInfiniteScrollView to your project.\n3. import `LCInfiniteScrollView.h`.\n\n- **Swift**\n\n1. Download everything in the LCInfiniteScrollView folder;\n2. Add (drag and drop) the source files in SwiftInfiniteScrollView to your project.\n\n## License\n\nLCInfiniteScrollView is provided under the MIT license. See LICENSE file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filiuchang%2Flcinfinitescrollview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filiuchang%2Flcinfinitescrollview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filiuchang%2Flcinfinitescrollview/lists"}