Latest 0.1.0
Homepage https://github.com/thegoal/ISRadioButton
License MIT
Platforms ios 8.0, requires ARC
Authors

A highly customisable Radio Button for iOS using swift.

Inspired by [DLRadioButton] (https://github.com/DavydLiu/DLRadioButton). (Swift copy of DLRadioButton with a little extra functionality)

  1. It have single selection ability for both radio and square button

  2. It have multiple selection ability for both radio and square button

Preview

screenshot1

Adding ISRadioButton to your project

Cocoapods

  1. Add a pod entry for ISRadioButton to your Podfile pod 'ISRadioButton'

Source files:

  • Put ISRadioButton.swift in your project

Usage

Add radio buttons in interface builder:

  1. Put some UIButtons onto a View and change the UIButtons’ type to "custom".

    change UIButton Type

  2. Set the UIButtons’ class to "ISRadioButton".

    change UIButton Class

  3. Set "otherButtons" outlet.

    set otherButtons outlet

To customize ISRadioButton:

  • Simply set properties directly in Interface Builder.

    design ISButton

  • Property reference:

    ISRadioButton

To add raido buttons programmatically, please refer to example project.

Requirements

ARC, iOS 7.0

Author

Ishaq Shafiq. For help or any qeustions, feel free to open an issue.

License

ISRadioButton is available under the MIT license.

Latest podspec

{
    "name": "ISRadioButton",
    "version": "0.1.0",
    "summary": "A highly customisable Radio Button for iOS using swift.",
    "description": "Dynamic Radio button in swift .Can be use as combobutton, dynamicforms.Most importenlty contains support for icon in radiobutton and switch'",
    "homepage": "https://github.com/thegoal/ISRadioButton",
    "license": "MIT",
    "authors": {
        "Ishaq": "[email protected]"
    },
    "source": {
        "git": "https://github.com/thegoal/ISRadioButton.git",
        "tag": "0.1.0",
        "commit": "af684622c26aa4bc1236b3025075ee4740854fca"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "ISRadioButton/ISRadioButton.{swift}",
    "resource_bundles": {
        "ISRadioButton": [
            "Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This