condensed constraint command.
This commit is contained in:
parent
b821250042
commit
ada34f6f13
@ -127,14 +127,7 @@ import UIKit
|
|||||||
leftContainer.updateView(size)
|
leftContainer.updateView(size)
|
||||||
|
|
||||||
messageTopConstraint?.constant = title.hasText ? PaddingOne : 0
|
messageTopConstraint?.constant = title.hasText ? PaddingOne : 0
|
||||||
|
buttonTopConstraint?.constant = message.hasText ? PaddingTwo : (title.hasText ? PaddingOne : 0)
|
||||||
if message.hasText {
|
|
||||||
buttonTopConstraint?.constant = PaddingTwo
|
|
||||||
} else if title.hasText {
|
|
||||||
buttonTopConstraint?.constant = PaddingOne
|
|
||||||
} else {
|
|
||||||
buttonTopConstraint?.constant = 0
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override open func reset() {
|
override open func reset() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user