-
Notifications
You must be signed in to change notification settings - Fork 501
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Adds checks on external projects removing #1183
- Loading branch information
1 parent
f2716f3
commit f05a53f
Showing
17 changed files
with
342 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// UITableViewController+.swift | ||
// FSNotes iOS | ||
// | ||
// Created by Александр on 24.10.2021. | ||
// Copyright © 2021 Oleksandr Glushchenko. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import UIKit | ||
import NightNight | ||
|
||
extension UITableViewController { | ||
@objc func updateNavigationBarBackground() { | ||
if #available(iOS 13.0, *) { | ||
var color = UIColor(red: 0.15, green: 0.28, blue: 0.42, alpha: 1.00) | ||
|
||
if NightNight.theme == .night { | ||
color = UIColor(red: 0.15, green: 0.15, blue: 0.15, alpha: 1.00) | ||
} | ||
|
||
guard let navController = navigationController else { return } | ||
|
||
navController.navigationBar.standardAppearance.backgroundColor = color | ||
navController.navigationBar.standardAppearance.titleTextAttributes = [NSAttributedString.Key.foregroundColor: UIColor.white] | ||
navController.navigationBar.scrollEdgeAppearance = navController.navigationBar.standardAppearance | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.