     }
 }
 
+/**
+Custom UIViewController that implements hiding feature of UINavigationBar when both scrollView and navigationBar are present. Thanks to neat Swift optionals it will not crash when neither is present.
+*/
 class T2GScrollController: UIViewController, UIScrollViewDelegate {
+    /// functionality is enabled by default
     var isHidingEnabled = true
     var statusBarBackgroundView: UIView?
     var statusBarBackgroundViewColor = UIColor(red: CGFloat(252.0/255.0), green: CGFloat(112.0/255.0), blue: CGFloat(87.0/255.0), alpha: 1.0)


import UIKit

enum T2GAutomaticScrollViewSnapStatus {
    case None
    case WillSnap

                                        statusBarBackgroundViewFrame?.origin.y += toMove
                                        barFrame.origin.y += toMove
                                    } else {
                                        var blackstripe = self.createMinifiedStripeBar(navigationCtr)
                                        statusBarBackgroundViewFrame?.origin.y = -44;
                                        barFrame.origin.y = -24;
                                    }
