Remove experimental code not meant to be committed.
This commit is contained in:
parent
01c8eb3ad5
commit
6e6747bc66
@ -33,27 +33,17 @@ class ThemedNavigationController: UINavigationController {
|
|||||||
isToolbarHidden = false
|
isToolbarHidden = false
|
||||||
|
|
||||||
let navigationAppearance = UINavigationBarAppearance()
|
let navigationAppearance = UINavigationBarAppearance()
|
||||||
let backgroundImage = AppAssets.barBackgroundColor.image()
|
navigationAppearance.backgroundColor = AppAssets.barBackgroundColor
|
||||||
navigationAppearance.backgroundImage = backgroundImage
|
|
||||||
navigationAppearance.titleTextAttributes = [.foregroundColor: UIColor.label]
|
navigationAppearance.titleTextAttributes = [.foregroundColor: UIColor.label]
|
||||||
navigationAppearance.largeTitleTextAttributes = [.foregroundColor: UIColor.label]
|
navigationAppearance.largeTitleTextAttributes = [.foregroundColor: UIColor.label]
|
||||||
navigationBar.standardAppearance = navigationAppearance
|
navigationBar.standardAppearance = navigationAppearance
|
||||||
navigationBar.tintColor = AppAssets.primaryAccentColor
|
navigationBar.tintColor = AppAssets.primaryAccentColor
|
||||||
|
|
||||||
let toolbarAppearance = UIToolbarAppearance()
|
let toolbarAppearance = UIToolbarAppearance()
|
||||||
toolbarAppearance.backgroundImage = backgroundImage
|
toolbarAppearance.backgroundColor = AppAssets.barBackgroundColor
|
||||||
toolbar.standardAppearance = toolbarAppearance
|
toolbar.standardAppearance = toolbarAppearance
|
||||||
toolbar.compactAppearance = toolbarAppearance
|
toolbar.compactAppearance = toolbarAppearance
|
||||||
toolbar.tintColor = AppAssets.primaryAccentColor
|
toolbar.tintColor = AppAssets.primaryAccentColor
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
extension UIColor {
|
|
||||||
func image(_ size: CGSize = CGSize(width: 1, height: 1)) -> UIImage {
|
|
||||||
return UIGraphicsImageRenderer(size: size).image { rendererContext in
|
|
||||||
self.setFill()
|
|
||||||
rendererContext.fill(CGRect(origin: .zero, size: size))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user