Merge branch 'feature/atomic_vds_line' of https://gitlab.verizon.com/BPHV_MIPS/mvm_core_ui into feature/vds_batch_one
This commit is contained in:
commit
21d5a3d17a
@ -28,17 +28,17 @@ import VDS
|
||||
|
||||
public required init() {
|
||||
super.init()
|
||||
viewModel = LineModel(type: .primary)
|
||||
viewModel = LineModel(type: .secondary)
|
||||
}
|
||||
|
||||
public override init(frame: CGRect) {
|
||||
super.init(frame: frame)
|
||||
viewModel = LineModel(type: .primary)
|
||||
viewModel = LineModel(type: .secondary)
|
||||
}
|
||||
|
||||
public required init?(coder: NSCoder) {
|
||||
super.init(coder: coder)
|
||||
viewModel = LineModel(type: .primary)
|
||||
viewModel = LineModel(type: .secondary)
|
||||
}
|
||||
|
||||
//--------------------------------------------------
|
||||
|
||||
@ -117,7 +117,7 @@ public extension UINavigationBarAppearance {
|
||||
func setShadow(for model: LineModel?) {
|
||||
let model = model ?? LineModel(type: .secondary)
|
||||
let line = Line(model: model, nil, nil)
|
||||
if model.type != .none {
|
||||
if line.shouldBeVisible() {
|
||||
shadowColor = line.lineColor
|
||||
} else {
|
||||
shadowColor = .clear
|
||||
|
||||
Loading…
Reference in New Issue
Block a user