Fixes non-readable error toast view when an authentication error occurs

This commit is contained in:
Riley Testut
2023-01-19 12:59:45 -06:00
parent 4f10984482
commit 957a53ecd6
2 changed files with 7 additions and 2 deletions

View File

@@ -13,6 +13,11 @@ import Network
import AltStoreCore
import AltSign
private extension UIColor
{
static let altInvertedPrimary = UIColor(named: "SettingsHighlighted")!
}
typealias AuthenticationError = AuthenticationErrorCode.Error
enum AuthenticationErrorCode: Int, ALTErrorEnum, CaseIterable
{
@@ -288,7 +293,7 @@ private extension AuthenticationOperation
{
guard let presentingViewController = self.presentingViewController else { return false }
self.navigationController.view.tintColor = .white
self.navigationController.view.tintColor = .altInvertedPrimary
if self.navigationController.viewControllers.isEmpty
{