{"id":15561349,"url":"https://github.com/shubham14896/sgselectionmodal","last_synced_at":"2026-03-14T13:02:15.161Z","repository":{"id":62453645,"uuid":"148123049","full_name":"shubham14896/SGSelectionModal","owner":"shubham14896","description":"A lightweight framework built for selecting out a single/multiple values from a list.","archived":false,"fork":false,"pushed_at":"2018-09-15T13:27:13.000Z","size":438,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T22:21:59.713Z","etag":null,"topics":["ios","modal","pickerview","popup","selection","state-list-drawable","swift4"],"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/shubham14896.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}},"created_at":"2018-09-10T08:24:54.000Z","updated_at":"2019-10-27T03:00:46.000Z","dependencies_parsed_at":"2022-11-01T22:46:20.492Z","dependency_job_id":null,"html_url":"https://github.com/shubham14896/SGSelectionModal","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubham14896%2FSGSelectionModal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubham14896%2FSGSelectionModal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubham14896%2FSGSelectionModal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubham14896%2FSGSelectionModal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shubham14896","download_url":"https://codeload.github.com/shubham14896/SGSelectionModal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250526050,"owners_count":21445123,"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":["ios","modal","pickerview","popup","selection","state-list-drawable","swift4"],"created_at":"2024-10-02T16:07:35.074Z","updated_at":"2026-03-14T13:02:10.122Z","avatar_url":"https://github.com/shubham14896.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://raw.githubusercontent.com/shubham14896/SGSelectionModal/master/Banner.jpg\"\u003e\u003c/img\u003e\n\n# SGSelection Modal\n\u003e SGSelection Modal is a lightweight framework for Selecting out single/multiple value from a list.\n\n![Version](https://img.shields.io/badge/Version-1.0.0-green.svg)\n![Swift 3.0](https://img.shields.io/badge/Swift-3.0-orange.svg?style=flat)\n![License](https://img.shields.io/github/license/mashape/apistatus.svg)\n![Author Shubham Gupta](https://img.shields.io/badge/Author-Shubham%20Gupta-blue.svg)\n\n## About\n\nHaving trouble selecting out which state/city/{list} user/{entity} belongs to ???  Here's what you need, A lightweight framework built for selecting out a single/multiple values from a list.Built in using UIView, UIAnimations, ScrollView, UIButton.\u2028Initiate a object, add items to object, override closures and you are good to go.\n\n## Features\n\n- Single Select.\n- Dynamic Width.\n- Works on Landscape \u0026 Portrait Mode.\n- Initiate with Selected Index.\n\n## Requirements\n\n- iOS 11.0+\n- Xcode 9.0\n- Swift 3.0+\n\n## Installation\n\n#### CocoaPods\nAdd following pod to project podfile.\n````\n  pod ’SGSelectionModal’\n  ````\n#### Manually\n\nDownload following files \u0026 add to your project.\n- SGModal.swift.\n- SGModalItem.swift.\n- SGRadioButton.swift.\n\n## Usage example\n````\nimport SGSelectionModal\n\nvar selectedIndex: Int = 0\n\nfunc showModal(){\n\n  let modal = SGModal(title: \"Select Country\", closeButtonTitle: \"Close\")\n  modal.width = 300\n  modal.selectedIndex = selectedIndex\n  \n      for (index, state) in StateList.states.enumerated() {\n              modal.addItem(item: state) {\n                  () in\n                  print(state)\n                  self.selectedIndex = index\n              }\n       }\n       \n  modal.show()\n}\n````\n## Preview\n\u003cimg src=\"https://raw.githubusercontent.com/shubham14896/SGSelectionModal/master/Preview1.png\"\u003e\u003c/img\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/shubham14896/SGSelectionModal/master/Preview2.png\"\u003e\u003c/img\u003e\n\n\n## Contribute\nAny contribution to **SGSelection Modal** will be appreciated, check the ``LICENSE`` file for more info.\n## Meta\n\nShubham Gupta – [@shubham14896](https://twitter.com/Shubham14896) – shubham9032@gmail.com\n\nDistributed under the MIT license. See ``LICENSE`` for more information.\n\n[https://github.com/shubham14896](https://github.com/shubham14896/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshubham14896%2Fsgselectionmodal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshubham14896%2Fsgselectionmodal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshubham14896%2Fsgselectionmodal/lists"}