diff --git a/Source/Configuration/YPColors.swift b/Source/Configuration/YPColors.swift index 295d6ed8a..465f386d2 100644 --- a/Source/Configuration/YPColors.swift +++ b/Source/Configuration/YPColors.swift @@ -53,6 +53,9 @@ public struct YPColors { /// The color of the crop overlay. public var cropOverlayColor: UIColor = .ypSystemBackground.withAlphaComponent(0.4) + /// The default color of all navigation bars except album's. + public var defaultNavigationBarColor: UIColor = .offWhiteOrBlack + // MARK: - Trimmer /// The color of the main border of the view diff --git a/Source/SelectionsGallery/YPSelectionsGalleryVC.swift b/Source/SelectionsGallery/YPSelectionsGalleryVC.swift index 0dd7fc379..85dede0ee 100644 --- a/Source/SelectionsGallery/YPSelectionsGalleryVC.swift +++ b/Source/SelectionsGallery/YPSelectionsGalleryVC.swift @@ -130,6 +130,7 @@ extension YPSelectionsGalleryVC: UICollectionViewDelegate { if let mediaFilterVC = mediaFilterVC as? UIViewController { let navVC = UINavigationController(rootViewController: mediaFilterVC) navVC.navigationBar.isTranslucent = false + navVC.navigationBar.backgroundColor = YPConfig.colors.defaultNavigationBarColor present(navVC, animated: true, completion: nil) } }