{"id":2201,"url":"https://github.com/saeid/GDCheckbox","last_synced_at":"2025-08-02T23:32:07.579Z","repository":{"id":56911913,"uuid":"78785915","full_name":"saeid/GDCheckbox","owner":"saeid","description":"Customizable CheckBox / RadioButton component for iOS","archived":false,"fork":false,"pushed_at":"2020-04-19T12:13:39.000Z","size":174,"stargazers_count":26,"open_issues_count":0,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-29T16:45:01.004Z","etag":null,"topics":["checkbox","ios","swift","switch"],"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/saeid.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-01-12T20:51:29.000Z","updated_at":"2024-05-20T01:49:25.000Z","dependencies_parsed_at":"2022-08-21T03:20:22.476Z","dependency_job_id":null,"html_url":"https://github.com/saeid/GDCheckbox","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saeid%2FGDCheckbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saeid%2FGDCheckbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saeid%2FGDCheckbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saeid%2FGDCheckbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saeid","download_url":"https://codeload.github.com/saeid/GDCheckbox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228503140,"owners_count":17930519,"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":["checkbox","ios","swift","switch"],"created_at":"2024-01-05T20:16:07.436Z","updated_at":"2024-12-06T17:30:48.998Z","avatar_url":"https://github.com/saeid.png","language":"Swift","funding_links":[],"categories":["UI"],"sub_categories":["Other free courses","Font","Other Testing"],"readme":"# GDCheckbox\n\nAn easy to use CheckBox/Radio button component for iOS, with Attributes inspector support.\n\n\n![untitled](https://cloud.githubusercontent.com/assets/9967486/21909175/03d46ab6-d92c-11e6-86d6-216c1b18e2e0.gif)\n\n\n# Requirements\n- Xcode 10+\n- Swift 5\n- iOS 9+\n\n# Installation\n## Cocoapods\n```\nsource 'https://github.com/CocoaPods/Specs.git'\nplatform :ios, '9.0'\nuse_frameworks!\n\ntarget '\u003cYour Target Name\u003e' do\n    pod 'GDCheckbox'\nend\n```\n    pod install\n\n\n## Manually\nDrag `GDCheckbox.swift` to your project!\n\n\n# How to use\n```swift\noverride func viewDidLoad() {\n    super.viewDidLoad()\n\n\n    let checkbox: GDCheckbox = GDCheckbox()\n\n    // Background color of the box\n    checkbox.baseColor = UIColor.white\n\n    // In case of check box, determine the animation duration of the check mark\n    checkbox.animationDuration = 1.0\n\n    // Determine if check mark should fill with animation\n    checkbox.shouldAnimate = false\n\n    // Color of the check mark / fill area -- no matter if isCurcular is on or off\n    checkbox.checkColor = UIColor.red\n\n    // Width of the check mark / fill area -- no matter if isCurcular is on or off\n    checkbox.checkWidth = 3.0\n\n    // Color of container border. If shouldFillContainer is set to true, container background also will be override with this color when CheckBox / Radio Button is selected.\n    checkbox.containerColor = UIColor.blue\n\n    // Determine if container should be filled when selected\n    // Note: if set to true, it will override `baseColor` when control is selected\n    checkbox.shouldFillContainer = false\n\n    // Border width of container view\n    checkbox.containerWidth = 5.0\n\n    // Determine if it's a check box or a radio button\n    checkbox.isRadioButton = false\n    \n    // Determine container shpae type for selected state\n    // For CheckBox -\u003e Check mark when true or square when false\n    // For RadioButton -\u003e Check mark when true or circle when false\n    checkbox.showCheckMark = false\n\n    // Set default state of the control\n    checkbox.isOn = false\n    \n    self.view.addSubview(checkbox)\n}\n\n@IBAction func onCheckBoxPress(_ sender: GDCheckbox) {\n    let state = sender.isOn ? \"ON\" : \"OFF\"\n    // Trigger action\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaeid%2FGDCheckbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaeid%2FGDCheckbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaeid%2FGDCheckbox/lists"}