Commit 13a4523f authored by Martin's avatar Martin
Browse files

IOS-2897 - minor fixes

parent a72c6682
......@@ -33,8 +33,13 @@ class Appearance {
UIToolbar.appearance().barTintColor = .pEpGreen
UIToolbar.appearance().tintColor = .white
if #available(iOS 15.0, *) {
Appearance.setupToolbarAppereanceFromiOS15()
let appearance = UIToolbarAppearance()
appearance.configureWithOpaqueBackground()
appearance.backgroundColor = .pEpGreen
UIToolbar.appearance().standardAppearance = appearance
UIToolbar.appearance().scrollEdgeAppearance = UIToolbar.appearance().standardAppearance
}
UITextView.appearance().tintColor = .pEpGreen
UITextField.appearance().tintColor = .pEpGreen
......@@ -153,7 +158,6 @@ extension Appearance {
customiseButtons(navigationBarAppearance: navigationBarAppearance)
}
/// Customises a navigation bar appearance for the login view.
/// - Parameter navigationBarAppearance: The appearance to customize.
@available(iOS 13, *)
......@@ -177,15 +181,4 @@ extension Appearance {
viewController.navigationItem.standardAppearance = appearance
}
}
// MARK: - iOS 15
@available(iOS 15, *)
private static func setupToolbarAppereanceFromiOS15() {
let appearance = UIToolbarAppearance()
appearance.configureWithOpaqueBackground()
appearance.backgroundColor = .pEpGreen
UIToolbar.appearance().standardAppearance = appearance
UIToolbar.appearance().scrollEdgeAppearance = UIToolbar.appearance().standardAppearance
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment