diff --git a/MVMCoreUI/Containers/NavigationController/UINavigationController+Extension.swift b/MVMCoreUI/Containers/NavigationController/UINavigationController+Extension.swift index 9a0665b9..e1d3a247 100644 --- a/MVMCoreUI/Containers/NavigationController/UINavigationController+Extension.swift +++ b/MVMCoreUI/Containers/NavigationController/UINavigationController+Extension.swift @@ -100,7 +100,13 @@ public extension UINavigationController { appearance.backgroundColor = backgroundColor appearance.titleTextAttributes.updateValue(tint, forKey: .foregroundColor) appearance.titlePositionAdjustment = model.titleOffset ?? .zero - appearance.shadowColor = model.line?.backgroundColor?.uiColor ?? .clear + if let type = model.line?.type, + type != .none, + let color = model.line?.backgroundColor { + appearance.shadowColor = color.uiColor + } else { + appearance.shadowColor = .clear + } appearance.shadowImage = getNavigationBarShadowImage(for: model)?.withRenderingMode(.alwaysTemplate) navigationBar.standardAppearance = appearance navigationBar.scrollEdgeAppearance = appearance diff --git a/MVMCoreUI/SupportingFiles/Media.xcassets/Contents.json b/MVMCoreUI/SupportingFiles/Media.xcassets/Contents.json index da4a164c..73c00596 100644 --- a/MVMCoreUI/SupportingFiles/Media.xcassets/Contents.json +++ b/MVMCoreUI/SupportingFiles/Media.xcassets/Contents.json @@ -1,6 +1,6 @@ { "info" : { - "version" : 1, - "author" : "xcode" + "author" : "xcode", + "version" : 1 } -} \ No newline at end of file +} diff --git a/MVMCoreUI/SupportingFiles/Media.xcassets/testingmap.imageset/Contents.json b/MVMCoreUI/SupportingFiles/Media.xcassets/testingmap.imageset/Contents.json new file mode 100644 index 00000000..3a079177 --- /dev/null +++ b/MVMCoreUI/SupportingFiles/Media.xcassets/testingmap.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "Screen Shot 2023-03-14 at 3.52.30 PM.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/MVMCoreUI/SupportingFiles/Media.xcassets/testingmap.imageset/Screen Shot 2023-03-14 at 3.52.30 PM.png b/MVMCoreUI/SupportingFiles/Media.xcassets/testingmap.imageset/Screen Shot 2023-03-14 at 3.52.30 PM.png new file mode 100644 index 00000000..2cb523d9 Binary files /dev/null and b/MVMCoreUI/SupportingFiles/Media.xcassets/testingmap.imageset/Screen Shot 2023-03-14 at 3.52.30 PM.png differ