{"id":17397685,"url":"https://github.com/mahinmuhammad/checkboxswiftui","last_synced_at":"2025-04-15T15:12:35.547Z","repository":{"id":168213163,"uuid":"643792256","full_name":"MahinMuhammad/CheckBoxSwiftUI","owner":"MahinMuhammad","description":"customised checkBox package for swiftUI ","archived":false,"fork":false,"pushed_at":"2023-05-22T14:27:11.000Z","size":49,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-15T15:12:26.856Z","etag":null,"topics":["checkbox","swift","swiftpackage","swiftpackagemanager","swiftui"],"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/MahinMuhammad.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":"2023-05-22T07:04:15.000Z","updated_at":"2023-12-05T22:12:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"c2e57833-1373-42a2-8ba5-6787db4b4765","html_url":"https://github.com/MahinMuhammad/CheckBoxSwiftUI","commit_stats":null,"previous_names":["mahinmuhammad/checkboxswiftui"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MahinMuhammad%2FCheckBoxSwiftUI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MahinMuhammad%2FCheckBoxSwiftUI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MahinMuhammad%2FCheckBoxSwiftUI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MahinMuhammad%2FCheckBoxSwiftUI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MahinMuhammad","download_url":"https://codeload.github.com/MahinMuhammad/CheckBoxSwiftUI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249094933,"owners_count":21211837,"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","swift","swiftpackage","swiftpackagemanager","swiftui"],"created_at":"2024-10-16T14:03:35.168Z","updated_at":"2025-04-15T15:12:35.541Z","avatar_url":"https://github.com/MahinMuhammad.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CheckBox-SwiftUI\n\nCheckBox-SwiftUI is a custom checkbox package for SwiftUI. It provides a simple and customizable checkbox view \nthat is missing in the native SwiftUI framework. The package utilizes SF Symbols to represent the checkbox states and \noffers options to customize the checkbox appearance.\n\nIf you like the project, please do not forget to star ★ this repository and follow me on GitHub.\n\n## Preview\n\n![preview of checkbox](/Graphics/CheckBoxDemo.gif) \n\n## Requirements\n\n* iOS 13.0+\n* Xcode 11.2+\n* Swift 5.0\n* SwiftUI framework\n\n## Features\n\n* Customizable checkbox view for SwiftUI.\n* Uses SF Symbols for checkbox states.\n* Supports toggling the checkbox state.\n* Optional customization of checkbox color and title color.\n\n## Installation\n\n### **Swift Package Manager**\n\nYou can add CheckBox-SwiftUI as a dependency in your Swift Package Manager-enabled project. \nFollow these steps to integrate the package into your project:\n\n1. In Xcode, go to \"File\" -\u003e \"Add Packages...\".\n2. Enter the URL of this repository: https://github.com/MahinMuhammad/CheckBoxSwiftUI\n3. Choose the desired version rule.\n4. Chosse the target where you want to add the package.\n5. Click \"Add Package\".\n6. Wait till Xcode varify and fetch it for you.\n7. Click \"Add Package\".\n\n## Usage\n\nTo use CheckBox-SwiftUI in your SwiftUI project, follow these steps:\n\n1. Import the CheckBoxSwiftUI module:\n```swift\nimport CheckBoxSwiftUI\n```\n\n2. Create a @State property to hold the checkbox state:\n```swift\n@State private var isChecked = false\n```\n\n3. Use the 'CheckBox' view in your SwiftUI view hierarchy:\n```swift\nCheckBox(isChecked: $isChecked, title: \"Click on this checkbox\")\n```\n\n4. Customize the checkbox appearance by providing optional parameters:\n```swift\nCheckBox(isChecked: $isChecked, title: \"Checkbox\", checkBoxColor: .blue, titleColor: .black)\n```\n## Integration into a complete but simple code:\n\n```swift\nimport SwiftUI\nimport CheckBoxSwiftUI\n\nstruct ContentView: View {\n@State private var isChecked = false\n\n    var body: some View {\n        VStack {\n            CheckBox(isChecked: $isChecked, title: \"Click on this checkbox\")\n        }\n        .padding()\n    }\n}\n\n```\n\n## Author\n\nMd. Mahinur Rahman, iOS Developer\n\nrahmanmahin@icloud.com\n\n## Find Me on:\n\n[FaceBook](https://web.facebook.com/mahin5muhammad)\n[Instagram](https://www.instagram.com/mahin5muhammad/)\n[LinkedIn](https://www.linkedin.com/in/rahmanmahin/)\n[Twitter](https://twitter.com/ImMahin)\n[Website](https://mahinmuhammad.github.io/view/home.html)\n[Discord](http://discordapp.com/users/Ghost_Friday#2625)\n\n\n## Contributing\n\nContributions to CheckBox-SwiftUI are welcome! If you encounter any issues or have ideas for improvements, \nplease feel free to open an issue or submit a pull request.\n\n## Feedback\n\nPlease feel free to open any [issue](https://github.com/MahinMuhammad/CheckBoxSwiftUI/issues)\n\n## License\n\nCheckBox-SwiftUI is available under the MIT License. See the LICENSE file for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahinmuhammad%2Fcheckboxswiftui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmahinmuhammad%2Fcheckboxswiftui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahinmuhammad%2Fcheckboxswiftui/lists"}