Latest 0.0.2
Homepage https://github.com/kaskay/LimitButtonSelect
License MIT
Platforms ios 9.0, requires ARC
Frameworks UIKit
Authors

Version
License: MIT
Platform
Swift 3.0

Intoduction

demo
demo

Requirements

LimitButtonSelect is written in Swift 3. Compatible with iOS 9.0+

Usage

The basic usage is to put the number of selectable buttons and buttons into an array.

limitButtonSelect = LimitButtonSelect(limit: 1, buttons: [button1, button2, button3])

If you want to preselect it, you can use it as shown below.

limitButtonSelect2 = LimitButtonSelect(limit: 3, buttons: [button4, button5, button6, button7, button8, button9], defaultIndex: [2,4])

When touching the button, use the on () method.

limitButtonSelect2.on(button: sender)

When you want to return selected buttons, you can use the selectedButton () method.

limitButtonSelect.selectedButton()

Installation

Cocoapods

LimitButtonSelect is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'LimitButtonSelect'

Author

kaskay

License

LimitButtonSelect is available under the MIT license.

Latest podspec

{
    "name": "LimitButtonSelect",
    "version": "0.0.2",
    "summary": "A short description of LimitButtonSelect.",
    "description": "Limited button Select, written in Swift 3.",
    "homepage": "https://github.com/kaskay/LimitButtonSelect",
    "license": {
        "type": "MIT",
        "file": "FILE_LICENSE"
    },
    "authors": {
        "jeasung.lee": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/kaskay/LimitButtonSelect.git",
        "tag": "0.0.2"
    },
    "source_files": "LimitButtonSelect/**/*.swift",
    "frameworks": "UIKit",
    "requires_arc": true,
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This