     }
     
     //
-    // MARK: View life cycle
+    // MARK: View controller life cycle
     
     open override func viewDidLoad() {
         super.viewDidLoad()

    }

}

//
// MARK: - Autolayout management

extension SOContainerViewController {
    
    open override func viewDidLayoutSubviews() {
        super.viewDidLayoutSubviews()
        
        if menuSide == .right && !isSideViewControllerPresented {
            guard let sideVC = self.sideViewController else {
                return
            }
            
            var frame = sideVC.view.frame
            frame.origin.x = frame.size.width + SideViewControllerTrailingIndent
            sideVC.view.frame = frame
        }
    }
    
}

//  SOContainerViewController.swift
//  SidebarOverlay
//
//  Created by Alexander Perechnev on 12/23/15.
//  Copyright © 2015-2017 Alexander Perechnev. All rights reserved.
//

import UIKit
