hold for now.
This commit is contained in:
parent
3d98c91e73
commit
d2d4e3d42c
@ -308,9 +308,7 @@ import UIKit
|
||||
bottomBar.backgroundColor = UIColor.black.cgColor
|
||||
descriptionLabel?.textColor = .mfBattleshipGrey()
|
||||
|
||||
resizeBottomBar(size: 1)
|
||||
|
||||
refreshUI()
|
||||
refreshUI(bottomBarSize: 1)
|
||||
}
|
||||
|
||||
open func errorAppearance(showError: Bool = false) {
|
||||
@ -326,9 +324,7 @@ import UIKit
|
||||
feedback = errorMessage
|
||||
}
|
||||
|
||||
resizeBottomBar(size: 4)
|
||||
|
||||
refreshUI()
|
||||
refreshUI(bottomBarSize: 4)
|
||||
}
|
||||
|
||||
open func lockAppearance() {
|
||||
@ -338,9 +334,7 @@ import UIKit
|
||||
hideBorder = true
|
||||
bottomBar.backgroundColor = UIColor.clear.cgColor
|
||||
|
||||
resizeBottomBar(size: 1)
|
||||
|
||||
refreshUI()
|
||||
refreshUI(bottomBarSize: 1)
|
||||
}
|
||||
|
||||
open func selectedAppearance() {
|
||||
@ -351,9 +345,7 @@ import UIKit
|
||||
borderStrokeColor = .black
|
||||
bottomBar.backgroundColor = UIColor.black.cgColor
|
||||
|
||||
resizeBottomBar(size: 1)
|
||||
|
||||
refreshUI()
|
||||
refreshUI(bottomBarSize: 1)
|
||||
}
|
||||
|
||||
open func disabledAppearance() {
|
||||
@ -365,12 +357,14 @@ import UIKit
|
||||
descriptionLabel?.textColor = self.isEnabled ? UIColor.mfBattleshipGrey() : UIColor.mfSilver()
|
||||
bottomBar.backgroundColor = self.isEnabled ? (self.showErrorMessage ? UIColor.mfPumpkin().cgColor : UIColor.black.cgColor) : UIColor.mfSilver().cgColor
|
||||
|
||||
resizeBottomBar(size: 1)
|
||||
|
||||
refreshUI()
|
||||
refreshUI(bottomBarSize: 1)
|
||||
}
|
||||
|
||||
open func refreshUI() {
|
||||
open func refreshUI(bottomBarSize: CGFloat? = nil) {
|
||||
|
||||
if let size = bottomBarSize, let fieldBounds = fieldContainer?.bounds {
|
||||
bottomBar.frame = CGRect(x: 0, y: fieldBounds.height - size, width: fieldBounds.width, height: size)
|
||||
}
|
||||
|
||||
self.delegateObject?.moleculeDelegate?.moleculeLayoutUpdated?(self)
|
||||
setNeedsDisplay()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user