{"id":20324761,"url":"https://github.com/mahinmuhammad/radiobuttonswiftui","last_synced_at":"2026-05-07T22:37:41.630Z","repository":{"id":176882044,"uuid":"659684373","full_name":"MahinMuhammad/RadioButtonSwiftUI","owner":"MahinMuhammad","description":"customised radiobutton package for swiftUI","archived":false,"fork":false,"pushed_at":"2023-06-28T11:34:24.000Z","size":609,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-14T14:18:44.482Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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-06-28T10:42:23.000Z","updated_at":"2024-09-28T08:43:14.000Z","dependencies_parsed_at":"2023-10-22T07:15:31.603Z","dependency_job_id":null,"html_url":"https://github.com/MahinMuhammad/RadioButtonSwiftUI","commit_stats":null,"previous_names":["mahinmuhammad/radiobuttonswiftui"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MahinMuhammad%2FRadioButtonSwiftUI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MahinMuhammad%2FRadioButtonSwiftUI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MahinMuhammad%2FRadioButtonSwiftUI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MahinMuhammad%2FRadioButtonSwiftUI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MahinMuhammad","download_url":"https://codeload.github.com/MahinMuhammad/RadioButtonSwiftUI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241828030,"owners_count":20026827,"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":[],"created_at":"2024-11-14T19:37:24.479Z","updated_at":"2026-05-07T22:37:36.578Z","avatar_url":"https://github.com/MahinMuhammad.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RadioButtonSwiftUI\n\nRadioButtonSwiftUI is a custom radio button package for SwiftUI. It provides a simple and customizable radiobutton group view \nthat is missing in the native SwiftUI framework. The package utilizes SF Symbols to represent the radio button states and \noffers options to customize the radiobutton 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\u003cimg src=\"/Graphics/RadioButtonDemo.png\" height=\"450\"\u003e\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 radiobutton view for SwiftUI.\n* Uses SF Symbols for radiobutton states.\n* Supports toggling the radiobutton state.\n* Optional customization of radiobutton color and title color.\n\n## Installation\n\n### **Swift Package Manager**\n\nYou can add RadioButtonSwiftUI 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/RadioButtonSwiftUI\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 RadioButtonSwiftUI in your SwiftUI project, follow these steps:\n\n1. Import the CheckBoxSwiftUI module:\n```swift\nimport RadioButtonSwiftUI\n```\n\n2. Create a @State property to hold the selected state:\n```swift\n@State var selectedOption:String = \"London\"\n```\n\n3. Create a collection of items for radio button groups:\n```swift\nlet fruits = [\"Dhaka\", \"London\", \"Paris\", \"Tokyo\", \"Delhi\"]\n```\n\n4. Use the 'RadioButtonGroup' view in your SwiftUI view hierarchy:\n```swift\nRadioButtonGroup(collectionOfItems: fruits, selectedOption: $selectedOption)\n```\n\n5. Customize the checkbox appearance by providing optional parameters:\n```swift\nRadioButtonGroup(collectionOfItems: fruits, selectedOption: $selectedOption, buttonColor: .pink, titleColor: .green)\n```\n## Integration into a complete but simple code:\n\n```swift\nimport SwiftUI\nimport RadioButtonSwiftUI\n\nstruct TestView: View {\n    @State var selectedOption:String = \"London\"\n    let fruits = [\"Dhaka\", \"London\", \"Paris\", \"Tokyo\", \"Delhi\"]\n    \n    var body: some View {\n        VStack{\n            RadioButtonGroup(collectionOfItems: fruits, selectedOption: $selectedOption)\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 RadioButtonSwiftUI 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/RadioButtonSwiftUI/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%2Fradiobuttonswiftui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmahinmuhammad%2Fradiobuttonswiftui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahinmuhammad%2Fradiobuttonswiftui/lists"}