better test functionality. exposing accessibility for hittable.
This commit is contained in:
parent
e5f96dba5c
commit
197bdd60de
@ -104,7 +104,7 @@ open class PillButton: Button, MVMCoreUIViewConstrainingProtocol {
|
|||||||
self.disabledTitleColor = disabledTitleColor
|
self.disabledTitleColor = disabledTitleColor
|
||||||
}
|
}
|
||||||
|
|
||||||
// isAccessibilityElement = isEnabled
|
isAccessibilityElement = isEnabled
|
||||||
|
|
||||||
if isEnabled {
|
if isEnabled {
|
||||||
if let fillColor = buttonModel?.enabledColors.fill {
|
if let fillColor = buttonModel?.enabledColors.fill {
|
||||||
|
|||||||
@ -353,6 +353,7 @@ import MVMCore
|
|||||||
}
|
}
|
||||||
|
|
||||||
override open func accessibilityActivate() -> Bool {
|
override open func accessibilityActivate() -> Bool {
|
||||||
|
guard isEnabled else { return false }
|
||||||
sendActions(for: .touchUpInside)
|
sendActions(for: .touchUpInside)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user