line update
This commit is contained in:
parent
ebf97cdbe7
commit
5790fc6feb
@ -72,7 +72,7 @@ import UIKit
|
||||
open func setStyle(_ style: LineModel.Style) {
|
||||
lineModel?.type = style
|
||||
backgroundColor = lineModel?.backgroundColor?.uiColor
|
||||
updateLineConstraints(constant: CGFloat(lineModel?.thickness ?? 1))
|
||||
updateLineConstraints(constant: lineModel?.thickness ?? 1)
|
||||
}
|
||||
|
||||
open func shouldBeVisible() -> Bool {
|
||||
|
||||
@ -57,8 +57,8 @@ import UIKit
|
||||
private var _backgroundColor: Color?
|
||||
public var backgroundColor: Color? {
|
||||
get {
|
||||
if let backgroundColor = _backgroundColor { return backgroundColor }
|
||||
if inverted { return backgroundColor_inverted }
|
||||
if let backgroundColor = _backgroundColor { return backgroundColor }
|
||||
if type == .standard { return Color(uiColor: .mvmCoolGray3) }
|
||||
return Color(uiColor: .mvmBlack)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user