{"id":22015890,"url":"https://github.com/pircate/rxfspagerview","last_synced_at":"2025-09-11T12:34:45.086Z","repository":{"id":62453119,"uuid":"141300023","full_name":"Pircate/RxFSPagerView","owner":"Pircate","description":"FSPagerView+Rx","archived":false,"fork":false,"pushed_at":"2021-08-31T11:04:42.000Z","size":2638,"stargazers_count":9,"open_issues_count":2,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T01:05:09.420Z","etag":null,"topics":["rxcocoa","rxswift"],"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/Pircate.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-07-17T14:19:10.000Z","updated_at":"2023-09-15T03:42:04.000Z","dependencies_parsed_at":"2022-11-01T23:46:05.581Z","dependency_job_id":null,"html_url":"https://github.com/Pircate/RxFSPagerView","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pircate%2FRxFSPagerView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pircate%2FRxFSPagerView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pircate%2FRxFSPagerView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pircate%2FRxFSPagerView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pircate","download_url":"https://codeload.github.com/Pircate/RxFSPagerView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252793667,"owners_count":21805058,"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":["rxcocoa","rxswift"],"created_at":"2024-11-30T04:29:50.205Z","updated_at":"2025-05-07T01:05:21.674Z","avatar_url":"https://github.com/Pircate.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RxFSPagerView\n\n[![CI Status](https://img.shields.io/travis/Pircate/RxFSPagerView.svg?style=flat)](https://travis-ci.org/Pircate/RxFSPagerView)\n[![Version](https://img.shields.io/cocoapods/v/RxFSPagerView.svg?style=flat)](https://cocoapods.org/pods/RxFSPagerView)\n[![License](https://img.shields.io/cocoapods/l/RxFSPagerView.svg?style=flat)](https://cocoapods.org/pods/RxFSPagerView)\n[![Platform](https://img.shields.io/cocoapods/p/RxFSPagerView.svg?style=flat)](https://cocoapods.org/pods/RxFSPagerView)\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Requirements\n\n## Installation\n\nRxFSPagerView is available through [CocoaPods](https://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'RxFSPagerView'\n```\n\n## Usage\n\n```swift\nlet items = Driver.of([\"image0\", \"image1\", \"image2\", \"image3\"])\nitems.drive(pagerView.rx.items(cellIdentifier: \"FSPagerViewCell\"))\n{ _, item, cell in\n    cell.imageView?.image = UIImage(named: item)\n}.disposed(by: disposeBag)\nitems.map({ $0.count }).drive(pageControl.rx.numberOfPages).disposed(by: disposeBag)\n\npagerView.rx.itemSelected.subscribe(onNext: { index in\n    debugPrint(index)\n}).disposed(by: disposeBag)\n\npagerView.rx.modelSelected(String.self).subscribe(onNext: { image in\n    debugPrint(image)\n}).disposed(by: disposeBag)\n\npagerView.rx.itemScrolled.asDriver().drive(pageControl.rx.currentPage).disposed(by: disposeBag)\n```\n\n## Author\n\nPircate, gao497868860@163.com\n\n## License\n\nRxFSPagerView 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%2Fpircate%2Frxfspagerview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpircate%2Frxfspagerview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpircate%2Frxfspagerview/lists"}