{"id":13466752,"url":"https://github.com/shima11/FlexiblePageControl","last_synced_at":"2025-03-26T00:31:30.851Z","repository":{"id":54409979,"uuid":"87271284","full_name":"shima11/FlexiblePageControl","owner":"shima11","description":"A flexible UIPageControl like Instagram.","archived":false,"fork":false,"pushed_at":"2023-09-14T03:49:23.000Z","size":29327,"stargazers_count":801,"open_issues_count":16,"forks_count":108,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-03-19T01:00:05.712Z","etag":null,"topics":["carthage","cocoapods","instagram","ios","swift","uipagecontrol"],"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/shima11.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}},"created_at":"2017-04-05T05:52:04.000Z","updated_at":"2025-03-18T09:18:32.000Z","dependencies_parsed_at":"2022-08-13T14:50:32.726Z","dependency_job_id":"9a69d74a-47b7-4d1d-85a3-b292f4e24f2c","html_url":"https://github.com/shima11/FlexiblePageControl","commit_stats":{"total_commits":79,"total_committers":12,"mean_commits":6.583333333333333,"dds":0.2784810126582279,"last_synced_commit":"79a7f654ae2e759409ae20aa1b9bff966729092b"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shima11%2FFlexiblePageControl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shima11%2FFlexiblePageControl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shima11%2FFlexiblePageControl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shima11%2FFlexiblePageControl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shima11","download_url":"https://codeload.github.com/shima11/FlexiblePageControl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245566098,"owners_count":20636390,"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":["carthage","cocoapods","instagram","ios","swift","uipagecontrol"],"created_at":"2024-07-31T15:00:49.654Z","updated_at":"2025-03-26T00:31:27.756Z","avatar_url":"https://github.com/shima11.png","language":"Swift","funding_links":[],"categories":["Libs","PageControl","UI [🔝](#readme)","Swift","User Interface"],"sub_categories":["UI","Mobile"],"readme":"# FlexiblePageControl\nA flexible UIPageControl like Instagram.\n\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/hsylife/SwiftyPickerPopover)\n ![Swift 4.2.x](https://img.shields.io/badge/Swift-4.2.x-orange.svg)\n [![Support](https://img.shields.io/badge/support-iOS%208%2B%20-blue.svg?style=flat)](https://www.apple.com/nl/ios/)\n\n# OverView\n\n![](demo.gif)\n\n# Install\n\n### Carthage\n\nFor Installing with Carthage, add it to your `Cartfile`.\n\n````\ngithub \"shima11/FlexiblePageControl\"\n````\n````\n$ carthage update\n````\n\n### CocoaPods\n\nFor installing with CocoaPods, add it to your `Podfile`.\n```\npod \"FlexiblePageControl\"\n```\n```\n$ pod update\n```\n\n# Usage\n\n````\nlet pageControl = FlexiblePageControl()\npageControl.numberOfPages = 10\nview.addSubview(pageControl)\n````\n\n### Customize\n\n````\n// color\npageControl.pageIndicatorTintColor = color1\npageControl.currentPageIndicatorTintColor = color2\n\n// size\nlet config = FlexiblePageControl.Config(\n    displayCount: 7,\n    dotSize: 6,\n    dotSpace: 4,\n    smallDotSizeRatio: 0.5,\n    mediumDotSizeRatio: 0.7\n)\n\npageControl.setConfig(config)\n````\n\n### Update page\n\n````\nfunc scrollViewDidScroll(_ scrollView: UIScrollView) {\n    pageControl.setProgress(contentOffsetX: scrollView.contentOffset.x, pageWidth: scrollView.bounds.width)\n}\n````\nor\n````\npageControl.setCurrentPage(at: page)\n````\n\n# Licence\n\nLicence MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshima11%2FFlexiblePageControl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshima11%2FFlexiblePageControl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshima11%2FFlexiblePageControl/lists"}