EnterpriseDS Documentation

Class DSRadio​Table​View​Cell

@IBDesignable
public final class DSRadioTableViewCell: UITableViewCell  

A UITableViewCell that implements a DSRadio for easy usage.

When added to a UITableView, this class lays out a DSRadio while passing through the properties directly to it. It honors margins and exposes the underlying DSRadio for further customization and data access.

For storyboards, add a UITableViewCell to your view and change the class name to DSRadioTableViewCell.

Set a DSRadioDelegate to the component to get notified about value changes.

DSRadioTableViewCell DSRadioTableViewCell UITableViewCell UITableViewCell DSRadioTableViewCell->UITableViewCell

Conforms To

UITableViewCell

Initializers

init?(coder:​)

public required init?(coder: NSCoder)  

init(style:​reuse​Identifier:​)

public override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?)  

Properties

radio​Delegate

@IBOutlet public weak var radioDelegate: DSRadioDelegate?  

The delegate which receives updates on the DSRadio's state.

is​Checked

@IBInspectable public var isChecked: Bool = false  

When true, the radio is checked. Unchecked otherwise.

title

@IBInspectable public var title: String = ""  

The text to be displayed next to the radio.

group​Name

@IBInspectable public var groupName: String? = nil  

A shared group name that links this radio to other radios in the UI and is read by Voiceover to signify if this is part of a group of checkboxes. It should be readable and not an identifier. (e.g. "Favorite Cats")

is​Enabled

@IBInspectable public var isEnabled: Bool = true  

Returns true if the radio is enabled and allows checking/unchecking.

accessibility​Traits

public override var accessibilityTraits: UIAccessibilityTraits  

accessibility​Label

public override var accessibilityLabel: String?  

accessibility​Hint

public override var accessibilityHint: String?  

accessibility​Value

public override var accessibilityValue: String?  

radio

public private(set) var radio: DSRadio! 

Methods

layout​Subviews()

public override func layoutSubviews()