ALRadioButtons
ALRadioButtons copied to clipboard
Getting an blank page
import ALRadioButtons
class RadioButtonsTableViewCell: UITableViewCell {
@IBOutlet var radioButtons: ALRadioGroup!
lazy var radioGroup = ALRadioGroup(items: [
.init(title: "title1", subtitle: "subtitle1"),
.init(title: "title2", subtitle: "subtitle2", detail: "Detail"),
.init(title: "title3"),
], style: .grouped)
override func awakeFromNib() {
super.awakeFromNib()
radioButtons = ALRadioGroup(items: [
.init(title: "title1"),
.init(title: "title2"),
.init(title: "title3")
], style: .grouped)
radioButtons.axis = .vertical
radioButtons.selectedIndex = 0
radioButtons.addTarget(self, action: #selector(radioGroupSelected(_:)), for: .valueChanged)
radioButtons.allowDeselection = true
}
}
Can you please help me where can I did wrong ! ?