Default to secondary
This commit is contained in:
parent
4d4f7c334d
commit
1da8a6db77
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user