From 8a3c91c9dce77d5fd1c4e010ee8bf8b75e9dc253 Mon Sep 17 00:00:00 2001 From: Andrea Mazzini Date: Fri, 22 Dec 2017 10:00:50 +0100 Subject: [PATCH] Bump to version 4.2.1 --- AMScrollingNavbar.podspec | 2 +- CHANGELOG.md | 6 +++++- .../ViewControllers/TableViewController.swift | 2 +- Source/ScrollingNavigationController.swift | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/AMScrollingNavbar.podspec b/AMScrollingNavbar.podspec index e027fe9c..8e9a3630 100644 --- a/AMScrollingNavbar.podspec +++ b/AMScrollingNavbar.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "AMScrollingNavbar" - s.version = "4.2.0" + s.version = "4.2.1" s.summary = "A custom UINavigationController that enables the scrolling of the navigation bar alongside the scrolling of an observed content view" s.description = <<-DESC A custom UINavigationController that enables the scrolling of the diff --git a/CHANGELOG.md b/CHANGELOG.md index 30755b66..649add8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ All notable changes to this project will be documented in this file. `AMScrollingNavbar` adheres to [Semantic Versioning](http://semver.org/). -- `4.2.x` Releases - [4.2.0](#420) +- `4.2.x` Releases - [4.2.0](#420) | [4.2.1](#421) - `4.1.x` Releases - [4.1.0](#410) - `4.0.x` Releases - [4.0.0](#400) | [4.0.1](#401) | [4.0.2](#402) | [4.0.3](#403) | [4.0.4](#404) | [4.0.5](#405) - `3.4.x` Releases - [3.4.0](#340) | [3.4.1](#341) @@ -17,6 +17,10 @@ All notable changes to this project will be documented in this file. --- +## [4.2.1](https://github.com/andreamazz/AMScrollingNavbar/releases/tag/4.2.1) + +- Fixed an issue with `UITableView`'s floating headers + ## [4.2.0](https://github.com/andreamazz/AMScrollingNavbar/releases/tag/4.2.0) Account for the notch when the status bar is hidden on iPhone X. See #295 diff --git a/Demo/ScrollingNavbarDemo/ViewControllers/TableViewController.swift b/Demo/ScrollingNavbarDemo/ViewControllers/TableViewController.swift index be1124c8..074193de 100644 --- a/Demo/ScrollingNavbarDemo/ViewControllers/TableViewController.swift +++ b/Demo/ScrollingNavbarDemo/ViewControllers/TableViewController.swift @@ -23,7 +23,7 @@ class TableViewController: ScrollingNavigationViewController, UITableViewDelegat toolbar.tintColor = .white navigationItem.rightBarButtonItem = UIBarButtonItem(barButtonSystemItem: .add, target: nil, action: nil) navigationController?.navigationBar.barTintColor = UIColor(red:0.91, green:0.3, blue:0.24, alpha:1) - navigationItem.searchController = UISearchController(searchResultsController: nil) +// navigationItem.searchController = UISearchController(searchResultsController: nil) } // Enable the navbar scrolling diff --git a/Source/ScrollingNavigationController.swift b/Source/ScrollingNavigationController.swift index f0bb35a5..cd7d0813 100644 --- a/Source/ScrollingNavigationController.swift +++ b/Source/ScrollingNavigationController.swift @@ -439,7 +439,7 @@ open class ScrollingNavigationController: UINavigationController, UIGestureRecog } delayDistance = maxDelay - + UIView.animate(withDuration: duration, delay: 0, options: UIViewAnimationOptions.beginFromCurrentState, animations: { self.updateSizing(delta) self.updateFollowers(delta)