review comment
This commit is contained in:
parent
d3fd303988
commit
30924c6c50
@ -81,11 +81,11 @@ import Foundation
|
||||
let delay: DispatchTimeInterval = DispatchTimeInterval.seconds((model as? CollapsableNotificationModel)?.collapseTime ?? 5)
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
|
||||
// If accessibility focused, delay collapse.
|
||||
guard let localSelf = self else { return }
|
||||
if MVMCoreUIUtility.viewContainsAccessiblityFocus(localSelf) {
|
||||
NotificationCenter.default.addObserver(localSelf, selector: #selector(localSelf.accessibilityFocusChanged(notification:)), name: UIAccessibility.elementFocusedNotification, object: nil)
|
||||
guard let self = self else { return }
|
||||
if MVMCoreUIUtility.viewContainsAccessiblityFocus(self) {
|
||||
NotificationCenter.default.addObserver(self, selector: #selector(self.accessibilityFocusChanged(notification:)), name: UIAccessibility.elementFocusedNotification, object: nil)
|
||||
} else {
|
||||
localSelf.collapse()
|
||||
self.collapse()
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -150,7 +150,7 @@ import Foundation
|
||||
}
|
||||
|
||||
open override class func estimatedHeight(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?) -> CGFloat? {
|
||||
return 96
|
||||
return 120
|
||||
}
|
||||
|
||||
/// Collapse if focus is no longer on this top alert.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user