Default to secondary

This commit is contained in:
Scott Pfeil 2023-09-28 20:12:36 -04:00
parent 4d4f7c334d
commit 1da8a6db77
2 changed files with 4 additions and 4 deletions

View File

@ -28,17 +28,17 @@ import VDS
public required init() { public required init() {
super.init() super.init()
viewModel = LineModel(type: .primary) viewModel = LineModel(type: .secondary)
} }
public override init(frame: CGRect) { public override init(frame: CGRect) {
super.init(frame: frame) super.init(frame: frame)
viewModel = LineModel(type: .primary) viewModel = LineModel(type: .secondary)
} }
public required init?(coder: NSCoder) { public required init?(coder: NSCoder) {
super.init(coder: coder) super.init(coder: coder)
viewModel = LineModel(type: .primary) viewModel = LineModel(type: .secondary)
} }
//-------------------------------------------------- //--------------------------------------------------

View File

@ -117,7 +117,7 @@ public extension UINavigationBarAppearance {
func setShadow(for model: LineModel?) { func setShadow(for model: LineModel?) {
let model = model ?? LineModel(type: .secondary) let model = model ?? LineModel(type: .secondary)
let line = Line(model: model, nil, nil) let line = Line(model: model, nil, nil)
if model.type != .none { if line.shouldBeVisible() {
shadowColor = line.lineColor shadowColor = line.lineColor
} else { } else {
shadowColor = .clear shadowColor = .clear