 		isTranslucent = false
 		backgroundColor = background
 		barTintColor = background
-		setBackgroundImage(UIImage(), for: UIBarMetrics.default)
+		setBackgroundImage(UIImage(), for: .default)
 		tintColor = text
 		titleTextAttributes = [.foregroundColor: text]
 	}

	/// - Parameters:
	///   - font: title font
	///   - color: title text color (default is .black).
	public func setTitleFont(_ font: UIFont, color: UIColor = UIColor.black) {
		var attrs = [NSAttributedStringKey: Any]()
		attrs[.font] = font
		attrs[.foregroundColor] = color

	///
	/// - Parameter tint: tint color (default is .white).
	public func makeTransparent(withTint tint: UIColor = .white) {
		isTranslucent = true
		backgroundColor = .clear
		barTintColor = .clear
		setBackgroundImage(UIImage(), for: .default)
		tintColor = tint
		titleTextAttributes = [.foregroundColor: tint]
		shadowImage = UIImage()
	}
	
	/// SwifterSwift: Set navigationBar background and text colors
