line update

This commit is contained in:
Scott Pfeil 2022-03-10 12:57:14 -05:00
parent ebf97cdbe7
commit 5790fc6feb
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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)
} }