This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var navBarOriginalHeight: CGFloat = 0.0 | |
let navBarMinHeight: CGFloat = 10.0 | |
var previousScrollViewYOffset: CGFloat = 0.0 | |
// MARK: - UIScrollViewDelegate | |
func scrollViewDidScroll(scrollView: UIScrollView) { | |
guard scrollView.contentSize.height >= scrollView.frame.height else {return} | |
guard let navigationBar = navigationController?.navigationBar else {return} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// SearchTabController.swift | |
// PageViewController | |
// | |
// Created by Chris Li on 3/31/16. | |
// Copyright © 2016 Chris Li. All rights reserved. | |
// | |
import UIKit |
NewerOlder