{"id":17178728,"url":"https://github.com/nakajijapan/shari","last_synced_at":"2025-03-17T11:30:28.346Z","repository":{"id":45035286,"uuid":"48347778","full_name":"nakajijapan/Shari","owner":"nakajijapan","description":"Shari is the alternative to the library of UIPickerView(drum roll) in Swift. You can select a item using UITableView. ","archived":false,"fork":false,"pushed_at":"2022-01-13T05:31:37.000Z","size":3529,"stargazers_count":115,"open_issues_count":0,"forks_count":12,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-27T23:02:00.346Z","etag":null,"topics":["carthage","cocoapods","navigation-controller","swift","ui","uipickerview","viewcontroller","xcode"],"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/nakajijapan.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":"2015-12-21T03:08:07.000Z","updated_at":"2024-12-08T16:15:20.000Z","dependencies_parsed_at":"2022-09-10T20:22:54.422Z","dependency_job_id":null,"html_url":"https://github.com/nakajijapan/Shari","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nakajijapan%2FShari","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nakajijapan%2FShari/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nakajijapan%2FShari/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nakajijapan%2FShari/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nakajijapan","download_url":"https://codeload.github.com/nakajijapan/Shari/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243858056,"owners_count":20359271,"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":["carthage","cocoapods","navigation-controller","swift","ui","uipickerview","viewcontroller","xcode"],"created_at":"2024-10-15T00:08:15.196Z","updated_at":"2025-03-17T11:30:26.373Z","avatar_url":"https://github.com/nakajijapan.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shari for Swift\n\n[![Carthage](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![Version](https://img.shields.io/cocoapods/v/Shari.svg?style=flat)](http://cocoapods.org/pods/Shari)\n[![License](https://img.shields.io/cocoapods/l/Shari.svg?style=flat)](http://cocoapods.org/pods/Shari)\n[![Platform](https://img.shields.io/cocoapods/p/Shari.svg?style=flat)](http://cocoapods.org/pods/Shari)\n[![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com)\n\nShari is the alternative to the library of `UIPickerView` (drum roll) in Swift. You can select a item using `UITableView`.\n\n![Shari](./demo.gif)\n\n\n\n## Requirements\n\n- iOS 10.0+\n- Xcode 9+\n- Swift 5+\n\n#### Swift Package Manager\n\nAdd via Xcode in the [usual way](https://developer.apple.com/documentation/xcode/adding_package_dependencies_to_your_app)\n\n\n## CocoaPods\n\nShari is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n\n```ruby\npod \"Shari\"\n```\n\nThen, run the following code:\n\n```ruby\n$ pod install\n```\n\n## Carthage\n\n[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager for Cocoa applications. \n\n``` bash\n$ brew update\n$ brew install carthage\n```\n\nTo integrate Shari into your Xcode project using Carthage, specify it in your `Cartfile`:\n\n``` ogdl\ngithub \"nakajijapan/Shari\"\n```\n\nThen, run the following command to build the Shari framework:\n\n``` bash\n$ carthage update\n```\n\n\n## Usage\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## ViewController\n\n- UINavigationController\n\n```swift\nlet modalNavigationController = storyboard!.instantiateViewController(withIdentifier: \"ModalNavigationController\") as! ShariNavigationController\n\nmodalNavigationController.parentNavigationController = navigationController\nnavigationController?.si.present(modalNavigationController)\n```\n\n- UITabBarController\n\n```swift\nlet modalNavigationController = storyboard!.instantiateViewController(withIdentifier: \"ModalNavigationController\") as! ShariNavigationController\n\nmodalNavigationController.parentTabBarController = tabBarController\ntabBarController?.si.present(modalNavigationController)\n```\n\n\nYou can change background color using following code:\n\n```swift\nShariSettings.backgroundColorOfOverlayView = UIColor.redColor()\n```\n\n\nYou can change with following code whether view should transform scale down:\n\n```swift\nShariSettings.shouldTransformScaleDown = true\n```\n\n\n## ModalViewController\n\n- Create NavigationController and ViewController in storyboards.\n- Input `Shari.NavigationController` in Custom Class for NavigationController.\n\n\n![Shari](./shari01.png)\n\n\n### Closing a window\n\nYou can close using the following code in viewController:\n\n```swift\nlet currentNavigationController = navigationController\ncurrentNavigationController?.si.dismiss {\n    // something\n}\n```\n\n\n## Author\n\nnakajijapan, pp.kupepo.gattyanmo@gmail.com\n\n## License\n\nShari is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnakajijapan%2Fshari","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnakajijapan%2Fshari","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnakajijapan%2Fshari/lists"}