{"id":21534067,"url":"https://github.com/wangrui460/wrcyclescrollview","last_synced_at":"2025-09-01T05:36:34.779Z","repository":{"id":264141004,"uuid":"90995110","full_name":"wangrui460/WRCycleScrollView","owner":"wangrui460","description":"Swift 自动无限轮播用这个就够了 swift 4","archived":false,"fork":false,"pushed_at":"2021-07-19T07:33:32.000Z","size":11391,"stargazers_count":162,"open_issues_count":13,"forks_count":31,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-30T07:40:38.464Z","etag":null,"topics":["cycle","cyclepictureview","cyclescrollview","sdcyclescrollview","swift4"],"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/wangrui460.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":"2017-05-11T15:30:26.000Z","updated_at":"2024-10-31T14:14:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"6ae6c14c-56b1-4969-8ef6-b4c5ef35c4f3","html_url":"https://github.com/wangrui460/WRCycleScrollView","commit_stats":null,"previous_names":["wangrui460/wrcyclescrollview"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wangrui460/WRCycleScrollView","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangrui460%2FWRCycleScrollView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangrui460%2FWRCycleScrollView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangrui460%2FWRCycleScrollView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangrui460%2FWRCycleScrollView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wangrui460","download_url":"https://codeload.github.com/wangrui460/WRCycleScrollView/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangrui460%2FWRCycleScrollView/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273077227,"owners_count":25041358,"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-09-01T02:00:09.058Z","response_time":120,"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":["cycle","cyclepictureview","cyclescrollview","sdcyclescrollview","swift4"],"created_at":"2024-11-24T03:09:02.240Z","updated_at":"2025-09-01T05:36:34.740Z","avatar_url":"https://github.com/wangrui460.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"![image](https://github.com/wangrui460/WRCycleScrollView/raw/master/screenshots/WRCycleScrollView.png)\n\n#####[强烈推荐使用：WRNavigationBar  超简单！！！ 一行代码设置状态栏、导航栏按钮、标题、颜色、透明度，移动等](https://github.com/wangrui460/WRNavigationBar)\n------------------------------------------------------------\n## iOS 技术交流\n我创建了一个 微信 iOS 技术交流群，欢迎小伙伴们加入一起交流学习~\n\t\n可以加我微信我拉你进去（备注iOS），我的微信号 wr1204607318\n\n## Requirements\n- iOS 8+\n- Xcode 8+\n\n\n## Demo \n---\ndemo列表\n\n![demo列表](https://github.com/wangrui460/WRCycleScrollView/raw/master/screenshots/demos.png)\n\n---\n知乎日报\n\n![知乎日报](https://github.com/wangrui460/WRCycleScrollView/raw/master/screenshots/知乎日报.gif)\n\n---\n本地图片轮播\n\n![本地图片轮播](https://github.com/wangrui460/WRCycleScrollView/raw/master/screenshots/本地图片轮播.gif)\n\n---\n网络图片轮播\n\n![网络图片轮播](https://github.com/wangrui460/WRCycleScrollView/raw/master/screenshots/网络图片轮播.gif)\n\n---\nStoryBoard创建\n\n![StoryBoard创建](https://github.com/wangrui460/WRCycleScrollView/raw/master/screenshots/StoryBoard创建.gif)\n\n---\n不无限轮播\n\n![不无限轮播](https://github.com/wangrui460/WRCycleScrollView/raw/master/screenshots/不无限轮播.gif)\n\n---\n不显示pageControl\n\n![不显示pageControl](https://github.com/wangrui460/WRCycleScrollView/raw/master/screenshots/不显示pageControl.gif)\n\n\n## Installation \n\n\u003e **手动拖入**\n\u003e 将 WRCycleScrollView 文件夹拽入项目中即可使用\n\n## How To Use\n\n\u003cpre\u003e\u003ccode\u003e\nvar cycleScrollView:WRCycleScrollView?\nlet height = 520 * kScreenWidth / 1080.0\nlet frame = CGRect(x: 0, y: 150, width: kScreenWidth, height: height)\n// 可加载网络图片或者本地图片\nlet serverImages = [\"http://p.lrlz.com/data/upload/mobile/special/s252/s252_05471521705899113.png\",              \"http://p.lrlz.com/data/upload/mobile/special/s303/s303_05442007678060723.png\",                  \"http://p.lrlz.com/data/upload/mobile/special/s303/s303_05442007587372591.png\",                    \"http://p.lrlz.com/data/upload/mobile/special/s303/s303_05442007388249407.png\",                    \"http://p.lrlz.com/data/upload/mobile/special/s303/s303_05442007470310935.png\"]\n// 构造方法\ncycleScrollView = WRCycleScrollView(frame: frame, type: .SERVER, imgs: serverImages)\nview.addSubview(cycleScrollView!)\n// 添加代理\ncycleScrollView?.delegate = self\n\u003c/code\u003e\u003c/pre\u003e\n\n代理方法\n\u003cpre\u003e\u003ccode\u003e\nextension ServerImgController: WRCycleScrollViewDelegate\n{\n    /// 点击图片事件\n    func cycleScrollViewDidSelect(at index:Int, cycleScrollView:WRCycleScrollView)\n    {\n        print(\"点击了第\\(index+1)个图片\")\n    }\n    \n    /// 图片滚动事件\n    func cycleScrollViewDidScroll(to index:Int, cycleScrollView:WRCycleScrollView)\n    {\n        print(\"滚动到了第\\(index+1)个图片\")\n    }\n}\n\u003c/code\u003e\u003c/pre\u003e\n\n\n\n## License\n\nWRCycleScrollView is available under the MIT license. See the LICENSE file for more info.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangrui460%2Fwrcyclescrollview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwangrui460%2Fwrcyclescrollview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangrui460%2Fwrcyclescrollview/lists"}