Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting an blank page #4

Open
udayFAI opened this issue Jan 25, 2024 · 0 comments
Open

Getting an blank page #4

udayFAI opened this issue Jan 25, 2024 · 0 comments

Comments

@udayFAI
Copy link

udayFAI commented Jan 25, 2024

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 ! ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant