Latest 1.4
Homepage https://github.com/swifty-iOS/RadioCheckboxButton
License MIT
Platforms ios 9.0
Authors

RadioAndCheckboxButton

RadioButton and CheckboxButton are subclass of UIButton control. Use can use RadioButton and CheckboxButton same as UIButton. It gives you animation and different styles of a button. You can group buttons to take advantage of more feature. It automatically manages all selections/deselection of RadioButton and CheckboxButton.

CheckboxButton

Default Style

MBRadioButton

Customized Style

MBRadioButton

RadioButton

Default Style

MBRadioButton

Customized Style

MBRadioButton

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate RadioButton and CheckboxButton into your Xcode project using CocoaPods, specify it in your Podfile:

target '<Your Target Name>' do
    pod 'MBRadioCheckboxButton'
end

You can integrate indivisual button control if required.

target '<Your Target Name>' do
    pod 'MBRadioButton'
end
target '<Your Target Name>' do
    pod 'MBCheckboxButton'
end

Then, run the following command:

$ pod install

How to Use

It is simple and easy to use. Just assign RadioButton or CheckboxButton to your button in XIB. You can advantage of grouping button using [RadioButtonContainerView] (Source/RadioButton/RadioButtonContainerView.swift) or CheckboxButtonContainerView. Add all the button in a UIView and assign respective container classes to view For more details please refer to RadioAndCheckboxButtonDemo example. It has CheckboxButtonDelegate and RadioButtonDelegate to get a callback of selection and deselection of a button.

Customization

For more customization please refer to RadioAndCheckboxButtonDemo example.

Licence

MIT

Latest podspec

{
    "name": "MBRadioButton",
    "version": "1.4",
    "summary": "MBRadioButton help you create Radio button without a single line of code. It also help you group the Radio buttons for single selection effect. It gives animation effect and customization.",
    "homepage": "https://github.com/swifty-iOS/RadioCheckboxButton",
    "license": "MIT",
    "authors": {
        "Swifty-iOS": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/swifty-iOS/RadioCheckboxButton.git",
        "tag": "1.4"
    },
    "source_files": [
        "Source/BaseButton/*.*",
        "Source/RadioButton/*.*"
    ]
}

Pin It on Pinterest

Share This