{"id":17026025,"url":"https://github.com/BeauNouvelle/SimpleCheckbox","last_synced_at":"2026-04-13T01:30:17.647Z","repository":{"id":55382506,"uuid":"99411226","full_name":"BeauNouvelle/SimpleCheckbox","owner":"BeauNouvelle","description":"A simple Checkbox","archived":false,"fork":false,"pushed_at":"2024-01-12T08:27:45.000Z","size":176,"stargazers_count":325,"open_issues_count":1,"forks_count":75,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-02-16T04:59:35.147Z","etag":null,"topics":["carthage","checkbox","checkmark","cocoapods","hacktoberfest","interface-builder","ios","swift","uicontrol"],"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/BeauNouvelle.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}},"created_at":"2017-08-05T08:54:46.000Z","updated_at":"2025-01-22T01:54:34.000Z","dependencies_parsed_at":"2024-01-12T12:20:22.991Z","dependency_job_id":"39d207c3-6f77-4fd3-8c12-0379039a8c2f","html_url":"https://github.com/BeauNouvelle/SimpleCheckbox","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeauNouvelle%2FSimpleCheckbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeauNouvelle%2FSimpleCheckbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeauNouvelle%2FSimpleCheckbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeauNouvelle%2FSimpleCheckbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BeauNouvelle","download_url":"https://codeload.github.com/BeauNouvelle/SimpleCheckbox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239997276,"owners_count":19731380,"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","checkbox","checkmark","cocoapods","hacktoberfest","interface-builder","ios","swift","uicontrol"],"created_at":"2024-10-14T07:30:21.930Z","updated_at":"2026-04-13T01:30:17.575Z","avatar_url":"https://github.com/BeauNouvelle.png","language":"Swift","funding_links":[],"categories":["Swift"],"sub_categories":[],"readme":"![](demo/images/banner.png)\n\nSimpleCheckbox aims to accomplish what other ios checkbox controls haven't. To be simple. There's no animations, no IBDesignable to slow down interface builder, and no performance heavy draw methods.\n\n# 🎉 Features\n\n 📒 Documentation\n \n ⚖️ Carefully tuned default values.\n\n# ✅ Requirements\n\n* Xcode 11\n* iOS 10+\n* Swift 5.1\n\n# 👨‍💻 Installation\n\n### Manual\n\nJust drag Checkbox.swift into your project to start using it.\n\n### Carthage\n- Add `github \"BeauNouvelle/SimpleCheckbox\"` to your `Cartfile`.\n\nYou can learn more about Carthage and get help setting it up [here](https://github.com/Carthage/Carthage/).\n\n### Cocoapods\nPodspec is present, however with SPM out for quite a while now, Cocoapods is no longer officially supported.\nLatest supported version of SimpleCheckbox is 2.2.2\n\n### Swift Package Manager\n- Add `https://github.com/BeauNouvelle/SimpleCheckbox.git` to your package file.\n\n# 👩‍🍳 Usage\n\nYou can create a new Checkbox either programatically:\n```swift\nlet checkbox = Checkbox(frame: CGRect(x: 50, y: 50, width: 25, height: 25))\n```\nOr using interface builder by dragging a `UIView` into your view controller and assigning its class to `Checkbox`. \n\nAfter hooking up an outlet you can begin customization.\n\n\n# 👩‍🎨 Customization\n\n## Border\n\n### Border Color\n```swift\ncheckbox.checkedBorderColor = .blue\ncheckbox.uncheckedBorderColor = .black\n```\n### Border Style\n```swift\ncheckbox.borderStyle = .circle\ncheckbox.borderStyle = .square\n```\n\n## Checkmark\n\n### Checkmark Color\n```swift\ncheckbox.checkmarkColor = .blue\n```\n### Checkmark Style\n```swift\ncheckbox.checkmarkStyle = .circle\ncheckbox.checkmarkStyle = .square\ncheckbox.checkmarkStyle = .cross\ncheckbox.checkmarkStyle = .tick\n```\n\n### Emoji\n```Swift\ncheckbox.emoji = \"❌\"\n```\nNOTE: Setting the emoji value will cause simple checkbox to ignore the checkmarkStyle. \nAny string will work, but only 1-3 characters may be displayed.\n\n## Haptic Feedback\n```swift\ncheckbox.useHapticFeedback = true\n```\n\n## Events\nThere are two methods for detecting when a tap event has occured and the `isChecked` property has changed.\n\n### Add Target\n```swift\ncheckbox.addTarget(self, action: #selector(checkboxValueChanged(sender:)), for: .valueChanged)\n\n.......\n\n@objc func checkboxValueChanged(sender: Checkbox) {\n    print(\"checkbox value change: \\(sender.isChecked)\")\n}\n```       \n### Closure\n```swift\ncheckbox.valueChanged = { (isChecked) in\n    print(\"checkbox is checked: \\(isChecked)\")\n}\n```\n\n## Touch Area\nCheckboxs can sometimes appear smaller than their UIButton and UISwitch counterparts which can make them difficult to activate. \n\nSimpleCheckbox has a way for you to tune the touch raduis to extend beyond its frame. Setting increasedTouchRadius will increase the touch radius by that amount.\n\n```swift\ncheckbox.increasedTouchRadius = 5 // Default\n```\n\n\n# 🎩 Fancy Alternatives\n[**Objective C** — BEMCheckbox](https://github.com/Boris-Em/BEMCheckBox)\n\n[**Swift** — M13Checkbox](https://github.com/Marxon13/M13Checkbox)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBeauNouvelle%2FSimpleCheckbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBeauNouvelle%2FSimpleCheckbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBeauNouvelle%2FSimpleCheckbox/lists"}