Latest 0.1.1
Homepage https://github.com/DavidTomic/ArrowPickerView
License MIT
Platforms ios 10.0
Authors

Overview

ArrowPickerView provides nice way for selecting dropdown items when filling form.

ArrowPickerView

Requirements

  • iOS10

Installation with CocoaPods

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

pod "ArrowPickerView"

Usage

import ArrowPickerView

let arrowPickerView = ArrowPickerView(rootView: self.view, delegate: self)
arrowPickerView.apperance.color = UIColor.green

let pickerArray = ["1", "2", "3", "4", "5"]
arrowPickerView.show(pickerArray: pickerArray, inButton: sender)

extension ViewController: ArrowPickerViewDelegate {

  func arrowPickerDone(row: Int, button: UIButton) {
  }

  func arrowPickerDidSelectRow(row: Int, button: UIButton) {
  }
}

Customization

    var width: Int 
    var height: Int 
    var topBarHeight: Int 
    var arrowWidth: Int 
    var arrowHeight: Int 
    var color: UIColor 
    var coverViewColor: UIColor 
    var doneButtonText: String 
    var labelAttributedParameters: [NSAttributedStringKey: Any] 
    var placeHolder: String? 
    var isNavigationControllerVisible: Bool 
    var spaceBetweenSelectedButtonAndSuperViewTop: Int
    var spaceBetweenPickerAndSelectedButton: Int

Scroll Tip

When using this widget inside scrollView, please make sure you select View for your top constraint, see the below:

ArrowPickerView

Example Project

An example project is included with this repo. To run the example project, clone the repo and run.

Author

David Tomić

License

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

Latest podspec

{
    "name": "ArrowPickerView",
    "version": "0.1.1",
    "summary": "a picker view for dropdown form input.",
    "description": "This picker view provides nice way for selecting dropdown items when filling form!",
    "homepage": "https://github.com/DavidTomic/ArrowPickerView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "David Tomiu0107": "[email protected]"
    },
    "source": {
        "git": "https://github.com/DavidTomic/ArrowPickerView.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "10.0"
    },
    "source_files": "Pod/ArrowPickerView.swift",
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This