DumpActionSheetPicker 1.0.9

DumpActionSheetPicker 1.0.9

Maintained by Amornthep Chua-iam.



  • By
  • Amornthep

DumpActionSheetPicker

Simple picker in actionsheet

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate DumpActionSheetPicker into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'DumpActionSheetPicker'
end

Then, run the following command:

$ pod install

Usage

Example

import DumpActionSheetPicker

let actionSheet = ActionSheetPicker(title: "Title", items: [["1","2"],["3","4","5"],["3","4","5"]], target: self) { (index, value) in
            print("\(index) \(value)")
        }
actionSheet.show()

Setting

init(title:String,items:NSArray,target:UIViewController,doneClick: @escaping ([Int],[String]) -> ())

open func setBackgroundColor(color:UIColor)
    
open func setPickerTextAttribute(attribute:[NSAttributedStringKey : Any])
    
open func setInitialSelection(selected:[Int])
    
open func setClickBackgroundEnable(isEnable:Bool)
    
open func onPickerValueChange(onChange:((_ index:[Int],_ value:[String]) -> ())?)
    
open func setPickerHeight(height:CGFloat)
    
open func setToolBarColor(color:UIColor)
    
open func setDoneButtonAttributedText(attributed:NSMutableAttributedString)
    
open func setPickerViewColor(color:UIColor)
    
open func setDoneButtonTitle(title:String)
    
open func setTitleLabelAttributedString(attributed:NSMutableAttributedString)
    
open func show()