change func signature for better readability
This commit is contained in:
parent
5429cdc70f
commit
7fd0eb65f7
@ -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 {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user