condensed constraint command.

This commit is contained in:
Kevin G Christiano 2019-07-01 13:16:14 -04:00
parent b821250042
commit ada34f6f13

View File

@ -127,14 +127,7 @@ import UIKit
leftContainer.updateView(size)
messageTopConstraint?.constant = title.hasText ? PaddingOne : 0
if message.hasText {
buttonTopConstraint?.constant = PaddingTwo
} else if title.hasText {
buttonTopConstraint?.constant = PaddingOne
} else {
buttonTopConstraint?.constant = 0
}
buttonTopConstraint?.constant = message.hasText ? PaddingTwo : (title.hasText ? PaddingOne : 0)
}
override open func reset() {