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

IBDesignable option button that have vertical stacked title and option labels for iOS and tvOS.

Demo

alt tag
alt tag

Requirements

  • Swift 3.0+
  • iOS 9.0+
  • tvOS 9.0+

Install

use_frameworks!
pod 'OptionButton'

Usage

  • Create an instance of OptionButton from code, or drag and drop a UIButton to storyboard and change its class to OptionButton.
  • It is a regular UIButton subclass with a stack view that have nameLabel and optionLabel.
  • You could change the labels text, font and textColor from storyboard.
  • Also you could set other properties from code.
  • You could set the content insets from either storyboard or code by leftInset, rightInset, topInset and bottomInset properties.

Latest podspec

{
    "name": "OptionButton",
    "version": "0.0.1",
    "summary": "IBDesignable option button that have vertical stacked title and option labels for iOS and tvOS.",
    "description": "OptionButtonn===nnIBDesignable option button that have vertical stacked title and option labels for iOS and tvOS.nnDemon----nn![alt tag](https://github.com/cemolcay/OptionButton/blob/master/ios.png?raw=true)n![alt tag](https://github.com/cemolcay/OptionButton/blob/master/ib.png?raw=true)nnRequirementsn----nn* Swift 3.0+n* iOS 9.0+n* tvOS 9.0+nnInstalln----nn```nuse_frameworks!npod 'OptionButton'n```nnUsagen----nn* Create an instance of `OptionButton` from code, or drag and drop a `UIButton` to storyboard and change its class to `OptionButton`.n* It is a regular UIButton subclass with a stack view that have `nameLabel` and `optionLabel`.n* You could change the labels text, font and textColor from storyboard.n* Also you could set other properties from code.n* You could set the content insets from either storyboard or code by `leftInset`, `rightInset`, `topInset` and `bottomInset` properties.",
    "homepage": "https://github.com/cemolcay/OptionButton",
    "license": "MIT",
    "authors": {
        "cemolcay": "[email protected]"
    },
    "social_media_url": "http://twitter.com/cemolcay",
    "platforms": {
        "ios": "9.0",
        "tvos": "9.0"
    },
    "source": {
        "git": "https://github.com/cemolcay/OptionButton.git",
        "tag": "0.0.1"
    },
    "source_files": "OptionButton/OptionButton.swift",
    "requires_arc": true,
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This