better test functionality. exposing accessibility for hittable.

This commit is contained in:
Kevin G Christiano 2020-12-11 14:45:50 -05:00
parent e5f96dba5c
commit 197bdd60de
2 changed files with 2 additions and 1 deletions

View File

@ -104,7 +104,7 @@ open class PillButton: Button, MVMCoreUIViewConstrainingProtocol {
self.disabledTitleColor = disabledTitleColor
}
// isAccessibilityElement = isEnabled
isAccessibilityElement = isEnabled
if isEnabled {
if let fillColor = buttonModel?.enabledColors.fill {

View File

@ -353,6 +353,7 @@ import MVMCore
}
override open func accessibilityActivate() -> Bool {
guard isEnabled else { return false }
sendActions(for: .touchUpInside)
return true
}