diff --git a/Pod/Classes/SideMenuAnimationController.swift b/Pod/Classes/SideMenuAnimationController.swift index aa6ff8d3..aeee30c2 100644 --- a/Pod/Classes/SideMenuAnimationController.swift +++ b/Pod/Classes/SideMenuAnimationController.swift @@ -123,7 +123,6 @@ private extension SideMenuAnimationController { else { return } originalSuperview = presentingViewController.view.superview - containerView?.addSubview(presentingViewController.view) containerView?.addSubview(presentedViewController.view) } diff --git a/Pod/Classes/SideMenuPresentationController.swift b/Pod/Classes/SideMenuPresentationController.swift index 5fc8a870..4bd46181 100644 --- a/Pod/Classes/SideMenuPresentationController.swift +++ b/Pod/Classes/SideMenuPresentationController.swift @@ -49,7 +49,7 @@ internal final class SideMenuPresentationController { guard config.statusBarEndAlpha > .leastNonzeroMagnitude else { return nil } return UIView { - $0.backgroundColor = config.presentationStyle.backgroundColor + $0.backgroundColor = .clear $0.autoresizingMask = [.flexibleHeight, .flexibleWidth] $0.isUserInteractionEnabled = false } @@ -104,7 +104,6 @@ internal final class SideMenuPresentationController { } presentingViewController.view.isUserInteractionEnabled = config.presentingViewControllerUserInteractionEnabled - containerView.backgroundColor = config.presentationStyle.backgroundColor layerViews() diff --git a/Pod/Classes/SideMenuPresentationStyle.swift b/Pod/Classes/SideMenuPresentationStyle.swift index 7accf60b..d6944ab3 100644 --- a/Pod/Classes/SideMenuPresentationStyle.swift +++ b/Pod/Classes/SideMenuPresentationStyle.swift @@ -9,8 +9,6 @@ import UIKit @objcMembers open class SideMenuPresentationStyle: InitializableClass { - /// Background color behind the views and status bar color - open var backgroundColor: UIColor = .black /// The starting alpha value of the menu before it appears open var menuStartAlpha: CGFloat = 1 /// Whether or not the menu is on top. If false, the presenting view is on top. Shadows are applied to the view on top.