diff --git a/MVMCoreUI/Atomic/Atoms/Views/Line.swift b/MVMCoreUI/Atomic/Atoms/Views/Line.swift index 7985ec56..76016292 100644 --- a/MVMCoreUI/Atomic/Atoms/Views/Line.swift +++ b/MVMCoreUI/Atomic/Atoms/Views/Line.swift @@ -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 { diff --git a/MVMCoreUI/Atomic/Atoms/Views/LineModel.swift b/MVMCoreUI/Atomic/Atoms/Views/LineModel.swift index a9a29264..a3073f52 100644 --- a/MVMCoreUI/Atomic/Atoms/Views/LineModel.swift +++ b/MVMCoreUI/Atomic/Atoms/Views/LineModel.swift @@ -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) }