Skip to content

Commit

Permalink
- updated screen shots and sample
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanhimmelman committed May 2, 2015
1 parent a92d314 commit 58a479f
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion HidingNavigationBar/HidingNavigationBarManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class HidingNavigationBarManager: NSObject, UIScrollViewDelegate, UIGestureRecog
var extensionView: UIView?

// Control the resistance when scrolling up/down before the navbar expands/contracts again.
var expansionResistance: CGFloat = 200
var expansionResistance: CGFloat = 0
private var contractionResistance: CGFloat = 0

var delegate: HidingNavigationBarManagerDelegate?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ class HidingNavExtensionViewController: UIViewController, UITableViewDataSource,
view.addSubview(tableView)

let extensionView = UIView(frame: CGRectMake(0, 0, view.frame.size.width, 40))
extensionView.backgroundColor = UIColor(red: 35/255, green: 255/255, blue: 127/255, alpha: 1)
extensionView.layer.borderColor = UIColor.lightGrayColor().CGColor
extensionView.layer.borderWidth = 1
extensionView.backgroundColor = UIColor(white: 230/255, alpha: 1)
let label = UILabel(frame: extensionView.frame)
label.text = "Extension View"
label.textAlignment = NSTextAlignment.Center
extensionView.addSubview(label)

hidingNavBarManager = HidingNavigationBarManager(viewController: self, scrollView: tableView)
hidingNavBarManager?.addExtensionView(extensionView)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class HidingNavTabViewController: UIViewController, UITableViewDataSource, UITab
hidingNavBarManager = HidingNavigationBarManager(viewController: self, scrollView: tableView)
if let tabBar = navigationController?.tabBarController?.tabBar {
hidingNavBarManager?.manageBottomBar(tabBar)
tabBar.barTintColor = UIColor(white: 230/255, alpha: 1)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class HidingNavToolbarViewController: UIViewController, UITableViewDataSource, U
view.addSubview(tableView)

toolbar = UIToolbar(frame: CGRectMake(0, view.bounds.size.height - 44, view.bounds.width, 44))
toolbar.barTintColor = UIColor(red: 35/255, green: 255/255, blue: 127/255, alpha: 1)
toolbar.barTintColor = UIColor(white: 230/255, alpha: 1)
view.addSubview(toolbar)

hidingNavBarManager = HidingNavigationBarManager(viewController: self, scrollView: tableView)
Expand Down
Binary file modified screenshots/hidingNav.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/hidingNavExtension.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/hidingNavTabBar.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/hidingNavToolbar.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 58a479f

Please sign in to comment.