ranjithkumar-m
12/18/2017 - 2:55 PM

edges-for-extended-layout

var totalBarHeight : CGFloat = UIApplication.shared.statusBarFrame.size.height

self.edgesForExtendedLayout = []
//Adding NavigationBar height to total bar height
if let navHeight = self.navigationController?.navigationBar.frame.size.height {
  totalBarHeight += navHeight
}