{"id":28539914,"url":"https://github.com/jaydeep-godhani/camerabuttonkit","last_synced_at":"2025-10-26T10:04:37.055Z","repository":{"id":297219848,"uuid":"996035721","full_name":"jaydeep-godhani/CameraButtonKit","owner":"jaydeep-godhani","description":"🎥 CameraButtonKit — A customizable camera record button for iOS with long-press recording, animated progress spinner, and tap gesture support. Ideal for short video apps and camera UIs.","archived":false,"fork":false,"pushed_at":"2025-06-04T11:48:07.000Z","size":35,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-08T12:42:44.206Z","etag":null,"topics":["animation","button","camera","camera-button","custom-ui","gesture","ios","ios-component","ios-library","longpress","recording","spinner","swift","uikit","video-recorder"],"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/jaydeep-godhani.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,"zenodo":null}},"created_at":"2025-06-04T11:12:17.000Z","updated_at":"2025-06-20T12:13:04.000Z","dependencies_parsed_at":"2025-06-04T19:08:12.132Z","dependency_job_id":"24859f74-2d39-4c45-9123-a9bc3502416c","html_url":"https://github.com/jaydeep-godhani/CameraButtonKit","commit_stats":null,"previous_names":["jaydeep-godhani/camerabuttonkit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jaydeep-godhani/CameraButtonKit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaydeep-godhani%2FCameraButtonKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaydeep-godhani%2FCameraButtonKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaydeep-godhani%2FCameraButtonKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaydeep-godhani%2FCameraButtonKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaydeep-godhani","download_url":"https://codeload.github.com/jaydeep-godhani/CameraButtonKit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaydeep-godhani%2FCameraButtonKit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269351910,"owners_count":24402678,"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-08-08T02:00:09.200Z","response_time":72,"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":["animation","button","camera","camera-button","custom-ui","gesture","ios","ios-component","ios-library","longpress","recording","spinner","swift","uikit","video-recorder"],"created_at":"2025-06-09T19:07:18.170Z","updated_at":"2025-10-26T10:04:32.020Z","avatar_url":"https://github.com/jaydeep-godhani.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CameraButtonKit\n\n![GitHub repo size](https://img.shields.io/github/repo-size/jaydeep-godhani/CameraButtonKit)\n![GitHub stars](https://img.shields.io/github/stars/jaydeep-godhani/CameraButtonKit?style=social)\n![GitHub forks](https://img.shields.io/github/forks/jaydeep-godhani/CameraButtonKit?style=social)\n![Platform](https://img.shields.io/badge/platform-iOS%2013.0%2B-blue.svg?style=flat)\n![Language](https://img.shields.io/badge/language-swift%205-4BC51D.svg?style=flat)\n![License](https://img.shields.io/badge/license-MIT-orange)\n\nA customizable and lightweight camera-style record button for iOS, with support for tap, long-press recording, progress spinner animation, and delegate callbacks.\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/a721367a-0817-454c-bc65-ba390d1e711e\" alt=\"Demo\" width=\"270\"/\u003e\n\u003c/div\u003e\n\n## Features\n\n- 🎥 Long-press to start recording\n- 🟢 Tap to trigger single-shot action\n- 🌀 Circular animated spinner around button\n- ⏱️ Auto-stop after max duration\n- ⚠️ Delegate warning if recording is too short\n- 🔁 Customizable sizes, colors, and timings\n\n## Requirements\n\n- iOS 13.0+\n- Swift 5\n- Xcode 12 or higher\n\n## Installation\n\nThis is an Xcode project, so you can directly clone or download the project into your workspace.\n\n### Clone the Repository\n\n```bash\ngit clone https://github.com/jaydeep-godhani/CameraButtonKit.git\n```\nAlternatively, you can download the project as a ZIP file from the GitHub repository page.\n\n### Integrating into Your Project\n\nTo integrate the `CameraButtonView` into your own Xcode project:\n\n1. Download or clone the repository.\n2. Copy the contents of the `Source` folder into your project.\n3. Add `CameraButtonView` to your storyboard or use it programmatically in your view controllers.\n\n## Usage\n\n```swift\nimport CameraButtonKit\n\nclass ViewController: UIViewController, CameraButtonDelegate {\n\n override func viewDidLoad() {\n     super.viewDidLoad()\n     \n     let cameraButton = CameraButtonView(frame: CGRect(x: 0, y: 0, width: 100, height: 100))\n     cameraButton.center = view.center\n     cameraButton.delegate = self\n     view.addSubview(cameraButton)\n }\n\n // MARK: - CameraButtonDelegate Methods\n\n func onStartRecord() {\n     print(\"Started recording\")\n }\n\n func onEndRecord() {\n     print(\"Finished recording\")\n }\n\n func onDurationTooShortError() {\n     print(\"Recording too short!\")\n }\n\n func onSingleTap() {\n     print(\"Single tap action\")\n }\n\n func onCancelled() {\n     print(\"Recording cancelled\")\n }\n\n}\n```\n\n## Customization\n\n| Property             | Description                          | Default |\n| -------------------- | ------------------------------------ | ------- |\n| `lineWidth`          | Thickness of the spinner             | `10`    |\n| `spinnerLineSpacing` | Gap between button and spinner       | `20`    |\n| `spinnerPadding`     | Additional space outside the spinner | `15`    |\n| `minRecordDuration`  | Minimum valid duration in seconds    | `0.3`   |\n| `maxRecordDuration`  | Maximum allowed duration             | `60.0`  |\n\nYou can also change the spinner color by updating `spinnerLayer.strokeColor`.\n\n## Contributions\n\nWe welcome contributions! If you find a bug, have an idea for a new extension, or want to improve the documentation, feel free to fork the repo and create a pull request.\n\n## License\n\nThis project is licensed under the MIT License - see the `LICENSE` file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaydeep-godhani%2Fcamerabuttonkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaydeep-godhani%2Fcamerabuttonkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaydeep-godhani%2Fcamerabuttonkit/lists"}