updated radiobutton group to deal with the item count label
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
e6615f9003
commit
e3e5ed68fb
@ -33,9 +33,10 @@ open class RadioBoxGroup: SelectorGroupSelectedHandlerBase<RadioBoxItem> {
|
||||
public var selectorModels: [RadioBoxModel]? {
|
||||
didSet {
|
||||
if let selectorModels {
|
||||
selectorViews = selectorModels.map { model in
|
||||
selectorViews = selectorModels.enumerated().map { index, model in
|
||||
return RadioBoxItem().with {
|
||||
$0.accessibilityLabel = model.accessibileText
|
||||
$0.accessibilityValue = "item \(index+1) of \(selectorModels.count)"
|
||||
$0.text = model.text
|
||||
$0.textAttributes = model.textAttributes
|
||||
$0.subText = model.subText
|
||||
|
||||
Loading…
Reference in New Issue
Block a user