Latest 1.0.0
Homepage https://github.com/AgarwalMilan/MAGCheckbox
License MIT
Platforms ios 8.0, requires ARC
Authors

[CocoaPods]()
[LICENSE]()

Custom circular checkbox button that can be quickly integrated from Storyboard without writing any extra code.

Demo

Installation

It’s super easy to use, just follow the below steps to integrate it quickly:

Using CocoaPods

Add the following line to your Podfile:

pod 'MAGCheckbox'

Run pod install, and you should now have the latest MAGCheckbox release.

Manual Installation

  1. Download and extract the files.
  2. Import the MAGCheckbox folder in your project.

Usage

  1. Open Storyboard and drag button on your view controller.
  2. Set equal width and height. Recommended width and height is 28 but you can increase it.
  3. Set it’s type as Custom and remove title.
  4. Set it’s Class as MAGCheckbox
  5. Use selected UIButton property to toggle it’s state.

Customization

You can use all the properties of UIButton alongwith below properties:

  1. borderColor to set different border color when checkbox is deselected.
  2. borderWidth to increase borderWidth to more than 1.0;
  3. fillColor to set different fill color when checkbox is selected.

Latest podspec

{
    "name": "MAGCheckbox",
    "version": "1.0.0",
    "summary": "A subclass of UIButton to create Checkbox kind of button from storyboard.",
    "description": "It's a custom control to quickly setup checkbox kind of button fromnstoryboard by just providing MAGCustomButton as Class and as it's a subclassnof UIButton you can use all the feature of UIButton. To toggle it's statenchange the value of 'selected' property of UIButton.",
    "homepage": "https://github.com/AgarwalMilan/MAGCheckbox",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Milan Agarwal": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/AgarwalMilan/MAGCheckbox.git",
        "tag": "1.0.0"
    },
    "source_files": [
        "MAGCheckbox/Classes",
        "MAGCheckbox/Classes/**/*.{h,m}"
    ],
    "exclude_files": "MAGCheckbox/Classes/Exclude",
    "resource_bundles": {
        "MAGCheckbox": [
            "MAGCheckbox/Assets/*.png"
        ]
    },
    "requires_arc": true
}

Pin It on Pinterest

Share This