2 "name": "PTDPickerViewController",
4 "summary": "PTDPickerViewController can implement the screen composed of UIPickerView, Cancel, and Enter button with simple code.",
5 "description": "PTDPickerViewController can implement the screen composed of UIPickerView, Cancel, and Enter button with simple code.\n\nExample Usages\n\n```swift\n//create picker view model\nlet pickerItems: [String] = [\"one\",\"two\",\"three\",\"fore\"]\nlet initialSelectedIndex = 2\nlet cancelButtonTitleString = \"cancel\"\nlet doneButtonTitleString = \"done\"\nlet pickerViewModel = PTDPickerViewModel.init(items: pickerItems,\n currentSelectedIndex: initialSelectedIndex,\n cancelButtonTitleString: cancelButtonTitleString,\n doneButtonTitleString: doneButtonTitleString)\n\n//show picker\nPTDPickerViewController.create().show(viewModel: pickerViewModel) { (selectedIndex) in\n guard let selectedIndex = selectedIndex else {\n print(\"cancel button tapped\")\n return\n }\n\n print(\"selected index (selectedIndex)\")\n}\n```",
6 "homepage": "https://github.com/pontake-dev/PTDPickerViewController",
12 "pontake-dev": "pontake.dev@gmail.com"
17 "swift_version": "4.0",
19 "git": "https://github.com/pontake-dev/PTDPickerViewController.git",
22 "source_files": "PTDPickerViewController/**/*.{swift}"