Latest 0.5
License MIT
Platforms ios 8.0
Frameworks UIKit, Foundation

Sheet Bottom Picker

Picker form bottom you can find datePicker or any item picker, or you can add view what you want like table view or collectioncView
you can used in both way by delegate or block to listen to result selection.

You can find it in Appetize


Add blow for your pod file

   pod 'ChtarBottomSheet' 
   run pod update

Getting Started

A step by step series of examples that tell you have to get a development env running

Say what the step will be

import ChtarBottomSheet

1- date picker

        SheetPicker.init(datePickerWithBlock : "Done" ,mode: .dateAndTime, local: Locale.init(identifier: "en"), onCompletion: { (date) in
        /// you can use it with delegate conform to  SheetPickerDateDelegate
        SheetPicker.init(datePickerWithDelegate: "ok", mode: .time, local: Locale.init(identifier: "ar"), delegate: self)

2- normal picker with any data Type

     SheetPicker.init(sheetPickerWithdblock: "Done", dataSource: [1,2,3]) { (index) in


        /// or use it with delegate 

         SheetPicker.init(sheetPickerWithdelegate: "Done", delegate: <#T##SheetPickerDelegate#>, dataSource: ["male","female"])

2- for use any custome view inside it

     let bundle = Bundle(for: type(of: self))
        let nib = UINib(nibName: "TableView", bundle: bundle)
        let view = nib.instantiate(withOwner: self, options: nil)[0] as! TableViewTest

        let cellNib = UINib(nibName: "TableCell", bundle: nil)
        view.tableViewData.register(cellNib, forCellReuseIdentifier: "cellTableID")

         view.tableViewData.delegate = myPresenter
         view.tableViewData.dataSource = myPresenter
         view.layer.cornerRadius = 12
        // custome piker
       var  customePicker =  SheetPicker.init(CustomePickerWithdblock: "hhh", customView: view,height : 300)

you should get like this result




Latest podspec

    "name": "ChtarBottomSheet",
    "platforms": {
        "ios": "8.0"
    "version": "0.5",
    "summary": "like keyBoard animated view in for any picker data and any custom view component for iOS",
    "description": "date picker and any data picker ,and any view you can put it in this animateied view, this view like keyboard view",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Ragaie Alfy": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.5"
    "frameworks": [
    "source_files": "Library files/*.swift",
    "resources": "Library files/*.xib",
    "resource_bundles": {
        "ChtarBottomSheet": [
            "Library files/DatePicker.xib",
            "Library files/PickerList.xib"
    "pushed_with_swift_version": "3"

Pin It on Pinterest

Share This