helper for text
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
1bed04dae0
commit
2c7666c214
@ -183,6 +183,20 @@ open class Tooltip: Control, TooltipLaunchable {
|
|||||||
accessibilityLabel = label
|
accessibilityLabel = label
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static func accessibleText(for title: String?, content: String?, closeButtonText: String) -> String {
|
||||||
|
var label = ""
|
||||||
|
if let title {
|
||||||
|
label = title
|
||||||
|
}
|
||||||
|
if let content {
|
||||||
|
if !label.isEmpty {
|
||||||
|
label += ","
|
||||||
|
}
|
||||||
|
label += content
|
||||||
|
}
|
||||||
|
return label
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user