• Stars
    star
    114
  • Rank 306,306 (Top 7 %)
  • Language
    Swift
  • License
    MIT License
  • Created almost 9 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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.

Shari

Requirements

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

Swift Package Manager

Add via Xcode in the usual way

CocoaPods

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

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

Usage

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

ViewController

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

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

modalNavigationController.parentTabBarController = tabBarController
tabBarController?.si.present(modalNavigationController)

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

ModalViewController

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

Shari

Closing a window

You can close using the following code in viewController:

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

Author

nakajijapan, [email protected]

License

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

More Repositories

1

PhotoSlider

PhotoSlider is a simple photo slider and can delete slider with swiping.
Swift
247
star
2

NKJPagerViewController

NKJPagerViewController is like a PagerTabStrip, which is in Android. It contains an endlessly scrollable UIScrollView.
Objective-C
117
star
3

NKJMovieComposer

NKJMovieComposer is very simple movie composer for iOS.
Swift
40
star
4

Ubaguruma

Ubaguruma is a photo select picker like LINE.
Swift
37
star
5

Sengiri

Sengiri is the screen recording utility. It can easily create GIF movie.
Swift
22
star
6

Ajimi

Ajimi means tasting. In Japanese, 味見. Ajimi is the feedback tool, which anyone can easily feedback to project team any time.
Swift
18
star
7

NKJMultiMovieCaptureView

CaptureSessionView to save videos while touching the screen
Swift
14
star
8

VersionUpdater

Notify users when a new version of your app is available and force them to upgrade the application of the version.
Swift
10
star
9

teiten

Teiten is an app that fixed-point observation a lot earnestly yourself by using a PC camera. 定点観測アプリ
Swift
10
star
10

ColorHex

Initializes the UIColor using hexadecimal.
Swift
9
star
11

SwiftSampleApp

Simple Application For Swift
Swift
8
star
12

frustrationme_app

Web Service - Social Wish Management
Ruby
5
star
13

dotfiles

console setting info
Emacs Lisp
4
star
14

jquery-cool-grid

calclate item's height and show items
CoffeeScript
4
star
15

nakajichan

say
Ruby
3
star
16

NKJPhotoSliderController

PhotoSlider can a simple photo slider and delete slider with swiping.
Objective-C
3
star
17

unkore_iphone

iPhone Game - Bureau of Nakajima Cleansing
Objective-C
3
star
18

podspec_bump

A command line tools to bump podspec version for CocoaPods.
Ruby
3
star
19

NoticeGitHubIssue

Ruby
2
star
20

post-feeds-in-irc

Post feeds in IRC
Ruby
2
star
21

SwiftSampleAppForCollectionView

Try to create a simple application using CollectionView (Normal Version and RxSwift Version)
Swift
2
star
22

frustrationme_chrome_extension

Chrome Extension for http://www.frustration.me
JavaScript
1
star
23

frustrationme_chrome_app

Chrome App for http://www.frustration.me
1
star
24

Zend_Framework_Db_Adapter_Pdo

Zend Framework側でSQLログを吐かせる方法
PHP
1
star
25

Zend_Framework_View_Smarty

Zend FrameworkでSmartyを利用する
PHP
1
star