Removes unused NavigationBar.backgroundColorView

This commit is contained in:
Riley Testut
2023-04-04 17:26:20 -05:00
committed by Magesh K
parent 23b6623020
commit e5824ddd35

View File

@@ -28,8 +28,6 @@ class NavigationBar: UINavigationBar
{ {
@IBInspectable var automaticallyAdjustsItemPositions: Bool = true @IBInspectable var automaticallyAdjustsItemPositions: Bool = true
private let backgroundColorView = UIView()
override init(frame: CGRect) override init(frame: CGRect)
{ {
super.init(frame: frame) super.init(frame: frame)
@@ -79,11 +77,6 @@ class NavigationBar: UINavigationBar
{ {
super.layoutSubviews() super.layoutSubviews()
if self.backgroundColorView.superview != nil
{
self.insertSubview(self.backgroundColorView, at: 1)
}
if self.automaticallyAdjustsItemPositions if self.automaticallyAdjustsItemPositions
{ {
// We can't easily shift just the back button up, so we shift the entire content view slightly. // We can't easily shift just the back button up, so we shift the entire content view slightly.