 import UIKit
 
 @available(iOS 11.0, *) @objc(BSWBottomContainerViewController)
-public class BottomContainerViewController: UIViewController {
+open class BottomContainerViewController: UIViewController {
     
     public let containedViewController: UIViewController
     public var button: UIButton? {

        buttonContainer.didMove(toParent: self)
    }
    
    public override func viewDidLayoutSubviews() {
        super.viewDidLayoutSubviews()
        let safeAreaFrame = self.view.safeAreaLayoutGuide.layoutFrame
        let inset = safeAreaFrame.origin.y + safeAreaFrame.size.height - buttonContainer.view.frame.minY
        containedViewController.additionalSafeAreaInsets = UIEdgeInsets(dictionaryLiteral: (.bottom, inset))
    }
    
    public override var preferredStatusBarStyle: UIStatusBarStyle {
        return containedViewController.preferredStatusBarStyle
    }
    
    
    public override func targetViewController(forAction action: Selector, sender: Any?) -> UIViewController? {
        if let splitVC = splitViewController {
            return splitVC
        } else if let navVC = navigationController {

        super.init(nibName: nil, bundle: nil)
    }

    required public init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    open override func viewDidLoad() {
        super.viewDidLoad()
        
        addChild(containedViewController)
