remove test code

This commit is contained in:
Scott Pfeil 2022-03-10 13:40:30 -05:00
parent 5790fc6feb
commit e875002cb1

View File

@ -76,27 +76,6 @@ import UIKit
let backgroundColor = navigationItemModel.line?.backgroundColor else { return nil }
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.
public static func setNavigationBarUI(navigationController: UINavigationController, navigationItemModel: NavigationItemModelProtocol) {