From e875002cb17e877026b9cda41f214d54b8e15739 Mon Sep 17 00:00:00 2001 From: Scott Pfeil Date: Thu, 10 Mar 2022 13:40:30 -0500 Subject: [PATCH] remove test code --- .../Containers/NavigationController.swift | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/MVMCoreUI/Containers/NavigationController.swift b/MVMCoreUI/Containers/NavigationController.swift index 3682fd6b..7da6e0f6 100644 --- a/MVMCoreUI/Containers/NavigationController.swift +++ b/MVMCoreUI/Containers/NavigationController.swift @@ -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) {