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