Skip to content

Commit

Permalink
Merge pull request #21 from felipowsky/fix-viewsize
Browse files Browse the repository at this point in the history
Enabled extendedLayoutIncludesOpaqueBars
  • Loading branch information
tristanhimmelman committed Jan 19, 2016
2 parents c8a596a + c7fe9f3 commit fd471bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions HidingNavigationBar/HidingNavigationBarManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ public class HidingNavigationBarManager: NSObject, UIScrollViewDelegate, UIGestu
if viewController.navigationController == nil || viewController.navigationController?.navigationBar == nil {
fatalError("ViewController must be within a UINavigationController")
}

viewController.extendedLayoutIncludesOpaqueBars = true

self.viewController = viewController
self.scrollView = scrollView

Expand Down

0 comments on commit fd471bf

Please sign in to comment.