Class
DSSelectionControl
public class DSSelectionControl: UIView
An abstract base component for selection controls. It should not be used externally.
DSSelectionControl is the base class for selection controls such as DSCheckbox and DSRadio. To create a similar component, the following properties and methods should be overridden:
-
_labelFontToken
-
componentBackgroundColor
-
selectedBoxColor
-
unselectedBoxColor
-
checkedImage
-
selectedVoiceover
-
componentVoiceover
-
boxButtonTapped
Relationships
Subclasses
DSCheckbox
An Enterprise-styled push button element in the style of a checkbox. It includes properties for providing a label.
DSRadio
An Enterprise-styled push button element in the style of a radio button. It includes properties for providing a label.
Conforms To
UIView
Properties
appliesBackgroundColorToSuperview
@IBInspectable public var appliesBackgroundColorToSuperview: Bool = false
Automatically makes superview background color match when enabled/disabled
isEnabled
@IBInspectable public var isEnabled: Bool = true
Returns true if the component is enabled and allows checking/unchecking.
isChecked
@IBInspectable public var isChecked: Bool = false
When true, the radio is checked. Unchecked otherwise.
groupName
@IBInspectable public var groupName: String? = nil
A shared group name that is read by Voiceover to signify if this is part of a group of checkboxes. They won't be linked in any way. It should be readable and not an identifier. (e.g. "Notifications to Receive")
accessibilityTraits
public override var accessibilityTraits: UIAccessibilityTraits
accessibilityHint
public override var accessibilityHint: String?
Methods
awakeFromNib()
public override func awakeFromNib()
prepareForInterfaceBuilder()
public override func prepareForInterfaceBuilder()