{"id":21373657,"url":"https://github.com/MQZHot/ZCycleView","last_synced_at":"2025-07-13T08:30:32.506Z","repository":{"id":56930383,"uuid":"112452669","full_name":"MQZHot/ZCycleView","owner":"MQZHot","description":"使用UICollectionView实现常见图片无限轮播，支持自定义cell，自定义pageControl，以及轮播样式","archived":false,"fork":false,"pushed_at":"2021-07-23T09:01:52.000Z","size":4263,"stargazers_count":443,"open_issues_count":20,"forks_count":69,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-06-12T00:57:32.707Z","etag":null,"topics":["banner","infinite-scroll","sdcyclescrollview","swift","uicollectionview","uicollectionviewflowlayout"],"latest_commit_sha":null,"homepage":"","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/MQZHot.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":"2017-11-29T09:12:02.000Z","updated_at":"2025-05-12T09:14:44.000Z","dependencies_parsed_at":"2022-08-21T00:01:14.793Z","dependency_job_id":null,"html_url":"https://github.com/MQZHot/ZCycleView","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/MQZHot/ZCycleView","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MQZHot%2FZCycleView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MQZHot%2FZCycleView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MQZHot%2FZCycleView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MQZHot%2FZCycleView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MQZHot","download_url":"https://codeload.github.com/MQZHot/ZCycleView/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MQZHot%2FZCycleView/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264951735,"owners_count":23687984,"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","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","sdcyclescrollview","swift","uicollectionview","uicollectionviewflowlayout"],"created_at":"2024-11-22T08:29:26.778Z","updated_at":"2025-07-13T08:30:31.210Z","avatar_url":"https://github.com/MQZHot.png","language":"Swift","funding_links":[],"categories":["iOS"],"sub_categories":["CyclePagerView"],"readme":"# ZCycleView\n\n使用`UICollectionView`实现常见图片轮播，支持自定义pageControl，自定义Cell\n\n![](https://img.shields.io/badge/support-swift%205%2B-green.svg)  ![](https://img.shields.io/badge/support-iOS%209%2B-blue.svg)  ![](https://img.shields.io/cocoapods/v/ZCycleView.svg?style=flat)\n\n\u003cimg src=\"https://github.com/MQZHot/ZCycleView/raw/master/Picture/picture.gif\"\u003e\n\n## 使用方法\n\n```swift\nlet cycleView = ZCycleView()\ncycleView.delegate = self\ncycleView.reloadItemsCount(images.count)\ncycleView.itemSpacing = 10\ncycleView.itemSize = CGSize(width: width - 150, height: (width - 150) / 2.3333)\ncycleView.initialIndex = 1\nview.addSubview(cycleView)\n```\n\n#### 代理方法\n\n```swift\nprotocol ZCycleViewProtocol: class {\n    /// 注册cell，[重用标志符：cell类]\n    func cycleViewRegisterCellClasses() -\u003e [String: AnyClass]\n    /// 配置cell\n    func cycleViewConfigureCell(collectionView: UICollectionView, cellForItemAt indexPath: IndexPath, realIndex: Int) -\u003e UICollectionViewCell\n    /// 开始拖拽\n    func cycleViewBeginDragingIndex(_ cycleView: ZCycleView, index: Int)\n    /// 滚动到index\n    func cycleViewDidScrollToIndex(_ cycleView: ZCycleView, index: Int)\n    /// 点击了index\n    func cycleViewDidSelectedIndex(_ cycleView: ZCycleView, index: Int)\n    /// 自定义pageControl\n    func cycleViewConfigurePageControl(_ cycleView: ZCycleView, pageControl: ZPageControl)\n}\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMQZHot%2FZCycleView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMQZHot%2FZCycleView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMQZHot%2FZCycleView/lists"}