LimitButtonSelect is written in Swift 3. Compatible with iOS 9.0+
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.
When you want to return selected buttons, you can use the selectedButton () method.
LimitButtonSelect is available through CocoaPods. To install it, simply add the following line to your Podfile:
LimitButtonSelect is available under the MIT license.