ASRadioGroup
Screenshots
Example
import ASRadioGroup
class ViewController: UIViewController {
@IBOutlet weak var asRadioGroup: ASRadioGroupClassic!
override func viewDidLoad() {
super.viewDidLoad()
asRadioGroup
.setDelegate(self)
.setRadioButtons([ASRadioButtonClassic("Mobile"), ASRadioButtonClassic("Email")], .vertical)
}
}
extension ViewController: ASRadioGroupDelegate {
func radioButtonEvent(_ radioGroup: ASRadioGroup, _ button: ASRadioButton) {
print("index: \(button.index)")
}
}
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
Installation
ASRadioGroup is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'ASRadioGroup'
Author
amitpstu1@gmail.com, amitpstu1@gmail.com
License
ASRadioGroup is available under the MIT license. See the LICENSE file for more info.