{"id":26281067,"url":"https://github.com/yonat/radiogroup","last_synced_at":"2025-07-20T20:05:46.854Z","repository":{"id":38451935,"uuid":"168965006","full_name":"yonat/RadioGroup","owner":"yonat","description":"The missing iOS radio buttons group.","archived":false,"fork":false,"pushed_at":"2024-11-01T14:15:43.000Z","size":157,"stargazers_count":191,"open_issues_count":1,"forks_count":32,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-17T11:48:11.890Z","etag":null,"topics":["radio-buttons","swift"],"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/yonat.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","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},"funding":{"github":["yonat"]}},"created_at":"2019-02-03T16:18:41.000Z","updated_at":"2025-01-16T16:55:50.000Z","dependencies_parsed_at":"2024-04-27T23:31:17.742Z","dependency_job_id":"3ba8a8a9-c259-4220-8fed-1f266e96451a","html_url":"https://github.com/yonat/RadioGroup","commit_stats":{"total_commits":63,"total_committers":3,"mean_commits":21.0,"dds":0.07936507936507942,"last_synced_commit":"9681f865697d48ca3b23fdea4fd1cb0d3d00a7f5"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/yonat/RadioGroup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yonat%2FRadioGroup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yonat%2FRadioGroup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yonat%2FRadioGroup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yonat%2FRadioGroup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yonat","download_url":"https://codeload.github.com/yonat/RadioGroup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yonat%2FRadioGroup/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266189677,"owners_count":23890065,"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":["radio-buttons","swift"],"created_at":"2025-03-14T15:19:01.928Z","updated_at":"2025-07-20T20:05:46.831Z","avatar_url":"https://github.com/yonat.png","language":"Swift","funding_links":["https://github.com/sponsors/yonat"],"categories":[],"sub_categories":[],"readme":"\u003cimg align=\"right\" src=\"Screenshots/RadioGroup.png\"\u003e\n\n# RadioGroup\n\n[![Swift Version][swift-image]][swift-url]\n[![Build Status][travis-image]][travis-url]\n[![License][license-image]][license-url]\n[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/RadioGroup.svg)](https://img.shields.io/cocoapods/v/RadioGroup.svg)  \n[![Platform](https://img.shields.io/cocoapods/p/RadioGroup.svg?style=flat)](http://cocoapods.org/pods/RadioGroup)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)\n\nThe missing iOS radio buttons group.\n\n## Usage\n\n```swift\nlet radioGroup = RadioGroup(titles: [\"First Option Title\", \"Another Option Title\", \"Last\"])\nradioGroup.selectedIndex = 0\nradioGroup.addTarget(self, action: #selector(optionSelected), forControlEvents: .valueChanged)\n```\n\n## SwiftUI Usage\n\n```swift\nRadioGroupPicker(selectedIndex: $selection, titles: [\"One\", \"Two\", \"Three\"])\n    .fixedSize()\n```\n\n## Changing Appearance\n\nThe properties below can be set in Interface Builder, in code, or through a `UIAppearance` proxy (e.g., `RadioGroup.appearance().titleColor = .red`).\nWhen using SwiftUI you can set them in the `RadioGroupPicker` initializer, or use as view modifiers (e.g., `.buttonSize(32)`). .\n\n**Layout:**\n\n```swift\nradioGroup.isVertical = false           // default is true =\u003e buttons are stacked vertically\nradioGroup.titleAlignment = .right\nradioGroup.isButtonAfterTitle = true    // default is false =\u003e button left (leading) relative to title\n```\n\n**Color and Font:**\n\n```swift\nradioGroup.tintColor = .green       // surrounding ring\nradioGroup.selectedColor = .red     // inner circle (default is same color as ring)\nradioGroup.selectedTintColor = .blue  // selected radio button's surrounding ring (default is tintColor)\n\nradioGroup.titleColor = .blue\nradioGroup.titleFont = myFont\n```\n\nOr use attributed strings:\n\n```swift\nradioGroup.attributedTitles = [\n    NSAttributedString(string: \"Italic\", attributes: [.obliqueness: 0.3]),\n    NSAttributedString(string: \"Underline\", attributes: [.underlineStyle: 1]),\n]\n```\n\n**Size:**\n\n```swift\nradioGroup.buttonSize = 42.0\nradioGroup.spacing = 12             // spacing between buttons\nradioGroup.itemSpacing = 12         // horizontal spacing between button and title\n```\n\n**Button appearance:**\n\n```swift\nRadioButton.appearance().size = 32              // height=width of button\nRadioButton.appearance().ringWidth = 3\nRadioButton.appearance().ringSpacing = 7        // space between outer ring and inner circle\nRadioButton.appearance().selectedColor = .blue  // color of inner circle\n```\n\n## Installation\n\n### CocoaPods:\n\n```ruby\npod 'RadioGroup'\n```\n\n### Swift Package Manager:\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/yonat/RadioGroup\", from: \"1.4.9\")\n]\n```\n\n## Meta\n\n[@yonatsharon](https://twitter.com/yonatsharon)\n\n[https://github.com/yonat/RadioGroup](https://github.com/yonat/RadioGroup)\n\n[swift-image]:https://img.shields.io/badge/swift-5.0-orange.svg\n[swift-url]: https://swift.org/\n[license-image]: https://img.shields.io/badge/License-MIT-blue.svg\n[license-url]: LICENSE.txt\n[travis-image]: https://img.shields.io/travis/dbader/node-datadog-metrics/master.svg?style=flat-square\n[travis-url]: https://travis-ci.org/dbader/node-datadog-metrics\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyonat%2Fradiogroup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyonat%2Fradiogroup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyonat%2Fradiogroup/lists"}