Latest 0.0.1
Homepage https://github.com/cemolcay/TVOSPicker
License MIT
Platforms tvos 9.0, requires ARC
Authors

A sweet horizontal picker view controller for tvOS.

Demo

alt tag

Requirements

  • Swift 3.0+
  • tvOS 9.0+

Install

# in your tvOS target
use_frameworks!
pod 'TVOSPicker'

Usage

There are two ways to use this library.

  • First one is with traditional ways, create either programmatically or from storyboard, a TVOSPickerViewController instance and implement its delegate methods, set dataSource, titleLabel and subtitleLabel texts.
  • Other one is call presentPicker(title:subtitle:dataSource:initialSelection:onSelectItem) on your presenting view controller.
  • If your view controller has a navigation controller, than TVOSPickerViewController would be pushed by navigation controller and pop after a cancellation or a selection.
  • Otherwise, it would be presented modally over the presenting view controller. So, you should be careful when you call it over an already modally presented view controller. I recommend you to wrap it with a navigation controller if you tend to present a picker from a modally presented view controller.

Latest podspec

{
    "name": "TVOSPicker",
    "version": "0.0.1",
    "summary": "A sweet horizontal picker view controller for tvOS.",
    "description": "TVOSPickern===nnA sweet horizontal picker view controller for tvOS.nnDemon----nn![alt tag](https://github.com/cemolcay/TVOSPicker/blob/master/demo.gif?raw=true)nnRequirementsn----nn- Swift 3.0+n- tvOS 9.0+nnInstalln----nn```n# in your tvOS targetnuse_frameworks!npod 'TVOSPicker'n```nnUsagen----nnThere are two ways to use this library.n- First one is with traditional ways, create either programmatically or from storyboard, a `TVOSPickerViewController` instance and implement its delegate methods, set `dataSource`, `titleLabel` and `subtitleLabel` texts.n- Other one is call `presentPicker(title:subtitle:dataSource:initialSelection:onSelectItem)` on your presenting view controller.n- If your view controller has a navigation controller, than `TVOSPickerViewController` would be pushed by navigation controller and pop after a cancellation or a selection.n- Otherwise, it would be presented modally over the presenting view controller. So, you should be careful when you call it over an already modally presented view controller. I recommend you to wrap it with a navigation controller if you tend to present a picker from a modally presented view controller.",
    "homepage": "https://github.com/cemolcay/TVOSPicker",
    "license": "MIT",
    "authors": {
        "cemolcay": "[email protected]"
    },
    "social_media_url": "http://twitter.com/cemolcay",
    "platforms": {
        "tvos": "9.0"
    },
    "source": {
        "git": "https://github.com/cemolcay/TVOSPicker.git",
        "tag": "0.0.1"
    },
    "source_files": "TVOSPicker/TVOSPickerViewController.swift",
    "requires_arc": true,
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This