How to change Navigation shadow color when changed mode? – Ios swift
navigationController?.navigationBar.layer.shadowColor = ColorPalette.navigationBarShadowColor.cgColor Set color according to traits mode. class ColorPalette : NSObject { static var navigationBarShadowColor: UIColor { return UIColor { (traits) -> UIColor in //dark: Black // light: grey16 return traits.userInterfaceStyle == .dark ? UIColor.black : UIColor(hex: "dbdbdc")…