     }
     
     override public func updateConstraints() {
-        var topOffset: CGFloat = 0.0
-        if let navigationController = self.topViewController as? UINavigationController {
-            if navigationController.navigationBarHidden == false {
-                topOffset = 20.0 + CGRectGetHeight(navigationController.navigationBar.frame) // 20 px for status bar + navigation bar height
+        var topOffset: CGFloat = 20.0
+        
+        if self.topViewController?.edgesForExtendedLayout == .All || self.topViewController?.edgesForExtendedLayout == .Top {
+            if let navigationController = self.topViewController?.parentViewController as? UINavigationController {
+                if navigationController.navigationBarHidden == false {
+                    topOffset += CGRectGetHeight(navigationController.navigationBar.frame)
+                }
             }
         }
         

        self.textLabel.font = UIFont.systemFontOfSize(14.0)
        self.textLabel.textAlignment = .Center
        self.textLabel.textColor = UIColor.whiteColor()
        self.addSubview(self.textLabel)
        
        self.activityIndicatorView.translatesAutoresizingMaskIntoConstraints = false


import UIKit

private let RADInfoBannerViewHeight: CGFloat = 30.0
private let RADInfoBannerViewHeightPadding: CGFloat = 10.0

public class RADInfoBannerView: UIView {
    
