{"id":18060237,"url":"https://github.com/dan-codes1/textfieldpicker","last_synced_at":"2026-05-19T14:11:08.587Z","repository":{"id":257997841,"uuid":"867578495","full_name":"dan-codes1/TextFieldPicker","owner":"dan-codes1","description":"A SwiftUI package that provides a TextField with a Picker as its input view. The picker replaces the keyboard as the input view for the TextField.","archived":false,"fork":false,"pushed_at":"2024-11-29T23:53:35.000Z","size":31,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T12:14:17.222Z","etag":null,"topics":["dependency","input","ios","keyboard","picker","swift","swiftpackage","swiftui","textfield","uikit","uipicker","uitextfield"],"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/dan-codes1.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":"2024-10-04T10:28:10.000Z","updated_at":"2024-12-16T00:23:49.000Z","dependencies_parsed_at":"2024-11-30T03:10:11.818Z","dependency_job_id":null,"html_url":"https://github.com/dan-codes1/TextFieldPicker","commit_stats":null,"previous_names":["dan-codes1/textfieldpicker"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/dan-codes1/TextFieldPicker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dan-codes1%2FTextFieldPicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dan-codes1%2FTextFieldPicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dan-codes1%2FTextFieldPicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dan-codes1%2FTextFieldPicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dan-codes1","download_url":"https://codeload.github.com/dan-codes1/TextFieldPicker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dan-codes1%2FTextFieldPicker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279009047,"owners_count":26084547,"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-10-11T02:00:06.511Z","response_time":55,"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":["dependency","input","ios","keyboard","picker","swift","swiftpackage","swiftui","textfield","uikit","uipicker","uitextfield"],"created_at":"2024-10-31T04:06:36.257Z","updated_at":"2025-10-11T22:18:22.738Z","avatar_url":"https://github.com/dan-codes1.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# TextFieldPicker\n\nA SwiftUI package that provides a TextField with a Picker as its input view. The picker replaces the keyboard as the input view for the TextField.\n\nhttps://github.com/user-attachments/assets/83f029db-457b-4521-9f02-79697e11d9f9\n\n## Requirements\n\n- iOS 13.0+\n- macOS 10.13+\n- Swift 5.0+\n## Installation\n\n### Swift Package Manager\n\nTo add TextFieldPicker to your Xcode project:\n\n1. In Xcode, open your project and select **File** \u003e **Add Packages**.\n2. Paste the repository URL: https://github.com/dan-codes1/TextFieldPicker.\n3. Choose the package options and add it to your target.\n\n\n## Usage\n\nHere is a simple example:\n```swift\nstruct ContentView: View {\n    @State private var selectedCountry: Country? = nil\n    let countries = Country.allCases\n\n    var body: some View {\n        TextFieldPicker(selection: $selectedCountry, options: countries)\n    }\n}\n```\n\n⚠️ **Important**: The `selection` parameter type must conform to [`Identifiable`](https://developer.apple.com/documentation/swift/identifiable) and [`CustomStringConvertible`](https://developer.apple.com/documentation/swift/customstringconvertible). The `decription` of the `CustomStringConvertible` is used as the display string for the picker options.\n In this case, `country` conforms to Indetifiable and CustomStringConvertible:\n ```swift\n enum Country: String, CaseIterable, Identifiable, CustomStringConvertible {\n     var id: Self { self }\n\n     case australia = \"Australia\"\n     case canada = \"Canada\"\n     case egypt = \"Egypt\"\n     case ghana = \"Ghana\"\n     case kenya = \"Kenya\"\n     case namibia = \"Namibia\"\n     case morocco = \"Morocco\"\n     case newZealand = \"New Zealand\"\n     case southAfrica = \"South Africa\"\n     case unitedKingdom = \"United Kingdom\"\n     case unitedStates = \"United States\"\n\n     var description: String {\n         self.rawValue\n     }\n }\n ```\n\n## Contribution\nContributions are welcome! Please open an issue or submit a pull request if you would like to contribute to the project.\n\n## See Also\n[TextFieldDatePicker](https://github.com/dan-codes1/TextFieldDatePicker) is a similar package but for dates. Check it out!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdan-codes1%2Ftextfieldpicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdan-codes1%2Ftextfieldpicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdan-codes1%2Ftextfieldpicker/lists"}