Swiftpack.co -  nakajijapan/Shari as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Shari is the alternative to the library of UIPickerView(drum roll) in Swift. You can select a item using UITableView.
.package(url: "https://github.com/nakajijapan/Shari.git", from: "1.9.0")

Shari for Swift

Carthage Version License Platform Reviewed by Hound

Shari is the alternative to the library of UIPickerView (drum roll) in Swift. You can select a item using UITableView.



  • iOS 10.0+
  • Xcode 9+
  • Swift 5+

Swift Package Manager

Add via Xcode in the usual way


Shari is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "Shari"

Then, run the following code:

$ pod install


Carthage is a decentralized dependency manager for Cocoa applications.

$ brew update
$ brew install carthage

To integrate Shari into your Xcode project using Carthage, specify it in your Cartfile:

github "nakajijapan/Shari"

Then, run the following command to build the Shari framework:

$ carthage update


To run the example project, clone the repo, and run pod install from the Example directory first.


  • UINavigationController
let modalNavigationController = storyboard!.instantiateViewController(withIdentifier: "ModalNavigationController") as! ShariNavigationController

modalNavigationController.parentNavigationController = navigationController
  • UITabBarController
let modalNavigationController = storyboard!.instantiateViewController(withIdentifier: "ModalNavigationController") as! ShariNavigationController

modalNavigationController.parentTabBarController = tabBarController

You can change background color using following code:

ShariSettings.backgroundColorOfOverlayView = UIColor.redColor()

You can change with following code whether view should transform scale down:

ShariSettings.shouldTransformScaleDown = true


  • Create NavigationController and ViewController in storyboards.
  • Input Shari.NavigationController in Custom Class for NavigationController.


Closing a window

You can close using the following code in viewController:

let currentNavigationController = navigationController
currentNavigationController?.si.dismiss {
    // something


nakajijapan, pp.kupepo.gattyanmo@gmail.com


Shari is available under the MIT license. See the LICENSE file for more info.


Stars: 111
Last commit: 6 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API