Removes unused NavigationBar.backgroundColorView

This commit is contained in:
Riley Testut
2023-04-04 17:26:20 -05:00
parent 428f08f3de
commit aea0977110

View File

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