Skip to content

Commit

Permalink
Added defaultNavigationBarColor setting. Fixed bug when editing selec…
Browse files Browse the repository at this point in the history
…ted item has no navigationBar background.
  • Loading branch information
NikKovIos committed Jan 8, 2022
1 parent 7ba2661 commit e01b224
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/Configuration/YPColors.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions Source/SelectionsGallery/YPSelectionsGalleryVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit e01b224

Please sign in to comment.