remove test code
This commit is contained in:
parent
5790fc6feb
commit
e875002cb1
@ -76,27 +76,6 @@ import UIKit
|
|||||||
let backgroundColor = navigationItemModel.line?.backgroundColor else { return nil }
|
let backgroundColor = navigationItemModel.line?.backgroundColor else { return nil }
|
||||||
return backgroundColor.uiColor.image(CGSize(width: thickness, height: thickness))
|
return backgroundColor.uiColor.image(CGSize(width: thickness, height: thickness))
|
||||||
}
|
}
|
||||||
// let rect = CGRect(origin: .zero, size: size)
|
|
||||||
// UIGraphicsBeginImageContextWithOptions(rect.size, false, 0.0)
|
|
||||||
// color.setFill()
|
|
||||||
// UIRectFill(rect)
|
|
||||||
// let image = UIGraphicsGetImageFromCurrentImageContext()
|
|
||||||
// UIGraphicsEndImageContext()
|
|
||||||
//
|
|
||||||
// guard let cgImage = image?.cgImage else { return nil }
|
|
||||||
// self.init(cgImage: cgImage)
|
|
||||||
//
|
|
||||||
//// let pixelScale = UIScreen.main.scale
|
|
||||||
//// let pixelSize = thickness / pixelScale
|
|
||||||
//// let fillSize = CGSize(width: pixelSize, height: pixelSize)
|
|
||||||
//// let fillRect = CGRect(origin: CGPoint.zero, size: fillSize)
|
|
||||||
//// UIGraphicsBeginImageContextWithOptions(fillRect.size, false, pixelScale)
|
|
||||||
//// graphicsContext.setFillColor(backgroundColor.cgColor)
|
|
||||||
//// graphicsContext.fill(fillRect)
|
|
||||||
//// let image = UIGraphicsGetImageFromCurrentImageContext()
|
|
||||||
//// UIGraphicsEndImageContext()
|
|
||||||
// return image
|
|
||||||
// }
|
|
||||||
|
|
||||||
/// Convenience function for setting the navigation bar ui, except for the buttons.
|
/// Convenience function for setting the navigation bar ui, except for the buttons.
|
||||||
public static func setNavigationBarUI(navigationController: UINavigationController, navigationItemModel: NavigationItemModelProtocol) {
|
public static func setNavigationBarUI(navigationController: UINavigationController, navigationItemModel: NavigationItemModelProtocol) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user