This commit is contained in:
Pfeil, Scott Robert 2020-09-24 10:50:37 -04:00
parent cac7180be5
commit 2984a1e05c

View File

@ -57,9 +57,10 @@ import Foundation
bottomView.set(with: model, delegateObject, additionalData)
// Update top view default noop to expand.
if model.topAction?.actionType == ActionNoopModel.identifier {
if let topAction = model.topAction,
topAction.actionType == ActionNoopModel.identifier {
topView.button.addActionBlock(event: .touchUpInside) { [weak self] (button) in
Button.performButtonAction(with: model.topAction!, button: button, delegateObject: delegateObject, additionalData: additionalData)
Button.performButtonAction(with: topAction, button: button, delegateObject: delegateObject, additionalData: additionalData)
self?.expand(topViewShowing: model.alwaysShowTopLabel)
}
}