EnterpriseDS Documentation

Class DSSelection​Control

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

DSSelectionControl DSSelectionControl UIView UIView DSSelectionControl->UIView DSRadio DSRadio DSRadio->DSSelectionControl DSCheckbox DSCheckbox DSCheckbox->DSSelectionControl

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

title

@IBInspectable public var title: String = ""  

The text to be displayed next to the radio.

applies​Background​Color​ToSuperview

@IBInspectable public var appliesBackgroundColorToSuperview: Bool = false  

Automatically makes superview background color match when enabled/disabled

is​Enabled

@IBInspectable public var isEnabled: Bool = true  

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

is​Checked

@IBInspectable public var isChecked: Bool = false  

When true, the radio is checked. Unchecked otherwise.

group​Name

@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")

accessibility​Traits

public override var accessibilityTraits: UIAccessibilityTraits  

accessibility​Hint

public override var accessibilityHint: String?  

Methods

awake​From​Nib()

public override func awakeFromNib()  

prepare​For​Interface​Builder()

public override func prepareForInterfaceBuilder()