{"id":15170627,"url":"https://github.com/toastersocks/multipicker","last_synced_at":"2025-09-05T23:54:45.115Z","repository":{"id":143373559,"uuid":"611469361","full_name":"toastersocks/MultiPicker","owner":"toastersocks","description":"A Picker for iOS that can be used to choose from one, one or none, or multiple options. ","archived":false,"fork":false,"pushed_at":"2025-05-05T04:09:04.000Z","size":855,"stargazers_count":40,"open_issues_count":2,"forks_count":10,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-14T00:27:53.291Z","etag":null,"topics":["multipicker","picker","swift","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/toastersocks.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,"zenodo":null}},"created_at":"2023-03-08T22:20:04.000Z","updated_at":"2025-08-05T11:28:17.000Z","dependencies_parsed_at":"2024-03-06T02:24:03.282Z","dependency_job_id":"9c81bfce-2a54-44d0-ba8d-1f7699b17c43","html_url":"https://github.com/toastersocks/MultiPicker","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/toastersocks/MultiPicker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toastersocks%2FMultiPicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toastersocks%2FMultiPicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toastersocks%2FMultiPicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toastersocks%2FMultiPicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toastersocks","download_url":"https://codeload.github.com/toastersocks/MultiPicker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toastersocks%2FMultiPicker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271909785,"owners_count":24842249,"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","status":"online","status_checked_at":"2025-08-24T02:00:11.135Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["multipicker","picker","swift","swiftui"],"created_at":"2024-09-27T08:04:18.184Z","updated_at":"2025-08-24T17:04:36.381Z","avatar_url":"https://github.com/toastersocks.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MultiPicker\n\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Ftoastersocks%2FMultiPicker%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/toastersocks/MultiPicker)\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Ftoastersocks%2FMultiPicker%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/toastersocks/MultiPicker)\n\n![](https://img.shields.io/badge/iOS-16+-blue)\n![](https://img.shields.io/badge/visionOS-17+-blue)\n![](https://img.shields.io/badge/watchOS-9+-blue)\n\n---\n\n## A picker for selecting from multiple options. Or no options\n\nSwiftUI's `Picker` on iOS only allows choosing exactly one option. If you need a picker that allows selecting one optional value, or multiple values from a set, you're outta luck. MultiPicker can do all three!\n\n![Navigation link style, plain text choice style, light mode, English](img/nav-plain-light-en.png)\n![Navigation link style, rich choice style, dark mode, English](img/nav-rich-dark-en.png)\n![Navigation link style, rich choice style, dark mode, Portuguese](img/nav-plain-dark-pt.png)\n![Navigation link style, rich choice style, dark mode, Arabic](img/nav-rich-dark-ar.png)\n![Inline style, leading and trailing selection indicator, light mode, English](img/list-light-leading-trailing-en.png)\n![Inline style, leading and trailing selection indicator, dark mode, Arabic](img/list-dark-leading-trailing-ar.png)\n\nMultiPicker tries to make its API as close to the SwiftUI `Picker`'s as possible.\n\nMultiPicker supports localization and accessibility and has better default accessibility than `Picker`.\nMultiPicker supports string initializers as well as custom label views.\nMultiPicker has a few additions and deviations from `Picker`:\n\n- Supports putting the selection indicator (checkmark) on either the leading or trailing side of options via the `selectionIndicatorPosition(_:)` modifier.\n- You can customize how the set of selected choices are represented in the `.navigationLink` style.\n- Currently only supports inline and navigationLink style pickers.\n- The picker style is set using the `mpPickerStyle(_:)` instead of `pickerStyle(_:)` modifier.\n- Views are tagged using the `mpTag(_:)` modifier instead of `tag(_:)`\n- The pushed picker list is inset grouped instead of grouped because I think that looks nicer.\n\n## Usage\n\nUsage of `MultiPicker` is very similar to `Picker`:\n\n```swift\nstruct MyView: View {\n    @State private var selection: Set\u003cModel\u003e = []\n    @State private var options: [Model]\n\n    var body: some View {\n        Form {\n            MultiPicker(\"Choose something\", selection: $selection) {\n                ForEach(options) { option in\n                    ModelCell(model: option)\n                        .mpTag(option)\n                }\n            }\n            .mpPickerStyle(.navigationLink)\n        }\n    }\n}\n```\n\nCheck the [documentation](https://swiftpackageindex.com/toastersocks/MultiPicker/documentation/multipicker) for more in-depth usage.\n\n## Installing\n\n### Swift Package Manager\n\n#### Via Xcode\n\n- Select your `.xcproject` file\n- Select the project under `PROJECT`\n- Select `Swift Package`\n- Tap the `+` sign\n- Paste this repo's address `https://github.com/toastersocks/MultiPicker` into the text field and hit 'Next'\n- Choose your version/branch on the next screen\n- Choose your targets and hit 'Finish'\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoastersocks%2Fmultipicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoastersocks%2Fmultipicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoastersocks%2Fmultipicker/lists"}