wip
This commit is contained in:
parent
cc05171332
commit
f0870bda5d
@ -116,8 +116,7 @@ import UIKit
|
|||||||
set (newFeedback) {
|
set (newFeedback) {
|
||||||
feedbackLabel.text = newFeedback
|
feedbackLabel.text = newFeedback
|
||||||
feedbackLabel.accessibilityElementsHidden = feedbackLabel.text?.isEmpty ?? true
|
feedbackLabel.accessibilityElementsHidden = feedbackLabel.text?.isEmpty ?? true
|
||||||
entryFieldContainer.refreshUI()
|
entryFieldContainer.refreshUI(moleculeLayoutUpdated: true)
|
||||||
// delegateObject?.moleculeDelegate?.moleculeLayoutUpdated(self)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -260,14 +260,22 @@ import UIKit
|
|||||||
refreshUI(bottomBarSize: 1)
|
refreshUI(bottomBarSize: 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
open func refreshUI(bottomBarSize: CGFloat? = nil) {
|
open func refreshUI(bottomBarSize: CGFloat? = nil, moleculeLayoutUpdated: Bool = false) {
|
||||||
|
|
||||||
if !disableAllBorders {
|
if !disableAllBorders {
|
||||||
let size: CGFloat = bottomBarSize ?? (showError ? 4 : 1)
|
let size: CGFloat = bottomBarSize ?? (showError ? 4 : 1)
|
||||||
|
var heightChanged = false
|
||||||
|
|
||||||
|
if let bottomHeight = bottomBar?.bounds.height {
|
||||||
|
heightChanged = size != bottomHeight
|
||||||
|
}
|
||||||
bottomBar?.frame = CGRect(x: 0, y: bounds.height - size, width: bounds.width, height: size)
|
bottomBar?.frame = CGRect(x: 0, y: bounds.height - size, width: bounds.width, height: size)
|
||||||
|
|
||||||
delegateObject?.moleculeDelegate?.moleculeLayoutUpdated(self)
|
if moleculeLayoutUpdated || heightChanged {
|
||||||
setNeedsDisplay()
|
delegateObject?.moleculeDelegate?.moleculeLayoutUpdated(self)
|
||||||
|
setNeedsDisplay()
|
||||||
|
}
|
||||||
|
|
||||||
layoutIfNeeded()
|
layoutIfNeeded()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user