{"id":19773927,"url":"https://github.com/badoo/thepagecontrol","last_synced_at":"2025-04-30T18:32:30.285Z","repository":{"id":56922825,"uuid":"83812350","full_name":"badoo/THEPageControl","owner":"badoo","description":null,"archived":false,"fork":false,"pushed_at":"2020-10-06T14:48:56.000Z","size":492,"stargazers_count":21,"open_issues_count":0,"forks_count":7,"subscribers_count":28,"default_branch":"master","last_synced_at":"2024-10-31T16:02:19.601Z","etag":null,"topics":["ios","pagecontrol","swift","ui-components","uikit"],"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/badoo.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-03-03T15:25:05.000Z","updated_at":"2023-10-26T15:59:15.000Z","dependencies_parsed_at":"2022-08-21T04:50:15.589Z","dependency_job_id":null,"html_url":"https://github.com/badoo/THEPageControl","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/badoo%2FTHEPageControl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badoo%2FTHEPageControl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badoo%2FTHEPageControl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badoo%2FTHEPageControl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/badoo","download_url":"https://codeload.github.com/badoo/THEPageControl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224219555,"owners_count":17275477,"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":["ios","pagecontrol","swift","ui-components","uikit"],"created_at":"2024-11-12T05:11:32.452Z","updated_at":"2024-11-12T05:11:33.141Z","avatar_url":"https://github.com/badoo.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# THEPageControl\n\n*THEPageControl* is a nice page control written in Swift.\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"./readme_images/example.gif\" /\u003e\n\u003c/div\u003e\n\n## Features\n- Full control over each dot.\n- Horizontal \u0026 vertical layouts with optional paddings. Works well with Auto Layout.\n- Interactive non-discrete active index change so you can do nice transitions.\n\n## How to use\n\n```swift\nlet pageControl = PageControl()\npageControl.dots = Array(repeating: .default, count: 10)\npageControl.configuration.spacing = 10\n\n// If you want to customize dots you usually create a new dot style:\n\nextension PageControl.Dot {\n\n    static var customStyle: PageControl.Dot {\n        return PageControl.Dot(\n            regularStyle: .init(\n                radius: 10,\n                fillColor: .red,\n                strokeColor: .black,\n                strokeWidth: 10\n            ),\n            activeStyle: .init(\n                radius: 10,\n                fillColor: .red,\n                strokeColor: .black,\n                strokeWidth: 5\n            )\n        )\n    }\n}\n\n// And then you can use the new style to fill `dots` array:\n\nlet pageControl = PageControl()\npageControl.dots = [ .default, .customStyle, .default ]\n```\n\n## How to install\n\n### Manually\nTHEPageControl is a single-file component - just copy it into your project!\n\n### CocoaPods\n1. Make sure `use_frameworks!` is added to your `Podfile`.\n2. Include the following in your `Podfile`:\n  ```\n  pod 'THEPageControl', '= 1.0.0'\n  ```\nIf you like living on the bleeding edge, you can use the `master` branch with:\n  ```\n  pod 'THEPageControl', :git =\u003e 'https://github.com/badoo/THEPageControl', :branch =\u003e 'master'\n  ```\n3. Run `pod install`\n\n## License\nSource code is distributed under MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbadoo%2Fthepagecontrol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbadoo%2Fthepagecontrol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbadoo%2Fthepagecontrol/lists"}