change func signature for better readability

This commit is contained in:
Kevin G Christiano 2020-03-13 13:39:08 -04:00
parent 5429cdc70f
commit 7fd0eb65f7

View File

@ -289,7 +289,7 @@ extension UIColor {
return .white return .white
} }
public class func setBackgroundColor(forNavigationBar color: UIColor, navigationBar: UINavigationBar, transparent: Bool) { public class func setBackgroundColor(_ color: UIColor, for navigationBar: UINavigationBar, isTransparent: Bool) {
DispatchQueue.main.async { DispatchQueue.main.async {
@ -305,7 +305,7 @@ extension UIColor {
let image = UIGraphicsGetImageFromCurrentImageContext() let image = UIGraphicsGetImageFromCurrentImageContext()
UIGraphicsEndImageContext() UIGraphicsEndImageContext()
if transparent { if isTransparent {
navigationBar.setBackgroundImage(UIImage(), for: .default) navigationBar.setBackgroundImage(UIImage(), for: .default)
navigationBar.isTranslucent = false navigationBar.isTranslucent = false
} else { } else {