Changelog History
Page 2
-
v2.0.1 Changes
August 02, 2020- โ Remove unused file that was supposed to be removed in #304.
-
v2.0.0 Changes
August 02, 2020๐ This version introduces a couple of breaking changes that are outlined below. If you're having issues upgrading or you see other breaking changes that are not outlined below, please let us know. More details about the release can be found here: #243.
โ Removed
FixedPagingViewController
๐
FixedPagingViewController
has been removed. You can now initializePagingViewController
directly with an array of view controllers.-FixedPagingViewController(viewControllers: viewControllers)+PagingViewController(viewControllers: viewControllers)
โ Removed generics (#285)
๐
PagingViewController
is not longer generic on thePagingItem
type. This means that all places where you previously had to specify the generic type, or cast to generic type, can be removed.-PagingViewController\<CalendarItem\>()+PagingViewController() -func pagingViewController\<T\>(\_ pagingViewController: PagingViewController\<T\>, pagingItemForIndex index: Int) -\> T {- return PagingIndexItem(index: index, title: cities[index]) as! T-}+func pagingViewController(\_: PagingViewController, pagingItemAt index: Int) -\> PagingItem {+ return PagingIndexItem(index: index, title: cities[index])+}
๐ Moved size delegate into separate protocol
๐ The
widthForPagingItem
delegate method have been moved out of thePagingViewControllerDelegate
and into a separate protocol calledPagingViewControllerSizeDelegate
. You now need to set thesizeDelegate
property onPagingViewController
:-pagingViewController.delegate = self+pagingViewController.sizeDelegate = self
Replaced
menuItemSource
withregister(cellClass:)
๐ The
menuItemSource
property for customizing the cell type has been removed. Instead you can customize the cell type for a givenPagingItem
by usingregister(cellClass:)
andregister(nib:)
. The benefit of this approach is that we can support multiple cell types in the same menu (#390).- pagingViewController.menuItemSource = .class(type: CalendarPagingCell.self)+ pagingViewController.register(CalendarPagingCell.self, for: CalendarItem.self)
โก๏ธ Updated naming of data sources
โก๏ธ As well as removing generics from the data sources, the naming has also been updated to be a bit more Swift-y.
protocol PagingViewControllerDataSource: class {- func numberOfViewControllers\<T\>(in pagingViewController: PagingViewController\<T\>) -\> Int+ func numberOfViewControllers(in pagingViewController: PagingViewController) -\> Int- func pagingViewController\<T\>(\_ pagingViewController: PagingViewController\<T\>, viewControllerForIndex index: Int) -\> UIViewController+ func pagingViewController(\_: PagingViewController, viewControllerAt index: Int) -\> UIViewController- func pagingViewController\<T\>(\_ pagingViewController: PagingViewController\<T\>, pagingItemForIndex index: Int) -\> T+ func pagingViewController(\_: PagingViewController, pagingItemAt index: Int) -\> PagingItem} protocol PagingViewControllerInfiniteDataSource: class {- func pagingViewController\<T\>(\_ pagingViewController: PagingViewController\<T\>, viewControllerForPagingItem: T) -\> UIViewController+ func pagingViewController(\_: PagingViewController, viewControllerFor pagingItem: PagingItem) -\> UIViewController- func pagingViewController\<T\>(\_ pagingViewController: PagingViewController\<T\>, pagingItemBeforePagingItem: T) -\> T?+ func pagingViewController(\_: PagingViewController, itemBefore pagingItem: PagingItem) -\> PagingItem?- func pagingViewController\<T\>(\_ pagingViewController: PagingViewController\<T\>, pagingItemAfterPagingItem: T) -\> T?+ func pagingViewController(\_ : PagingViewController, itemAfter pagingItem: PagingItem) -\> PagingItem?}
-
v2.0.0-beta Changes
November 17, 2019๐ Please help test this release and let us know if you find any issues! This version introduces a couple of breaking changes that are outlined below. If you're having issues upgrading or you see other breaking changes that are not outlined below, please let us know. More details about the release can be found here: #243.
โ Removed
FixedPagingViewController
๐
FixedPagingViewController
has been removed. You can now initializePagingViewController
directly with an array of view controllers.-FixedPagingViewController(viewControllers: viewControllers)+PagingViewController(viewControllers: viewControllers)
โ Removed generics (#285)
๐
PagingViewController
is not longer generic on thePagingItem
type. This means that all places where you previously had to specify the generic type, or cast to generic type, can be removed.-PagingViewController\<CalendarItem\>()+PagingViewController() -func pagingViewController\<T\>(\_ pagingViewController: PagingViewController\<T\>, pagingItemForIndex index: Int) -\> T {- return PagingIndexItem(index: index, title: cities[index]) as! T-}+func pagingViewController(\_: PagingViewController, pagingItemAt index: Int) -\> PagingItem {+ return PagingIndexItem(index: index, title: cities[index])+}
๐ Moved size delegate into separate protocol
๐ The
widthForPagingItem
delegate method have been moved out of thePagingViewControllerDelegate
and into a separate protocol calledPagingViewControllerSizeDelegate
. You now need to set thesizeDelegate
property onPagingViewController
:-pagingViewController.delegate = self+pagingViewController.sizeDelegate = self
Replaced
menuItemSource
withregister(cellClass:)
๐ The
menuItemSource
property for customizing the cell type has been removed. Instead you can customize the cell type for a givenPagingItem
by usingregister(cellClass:)
andregister(nib:)
. The benefit of this approach is that we can support multiple cell types in the same menu (#390).- pagingViewController.menuItemSource = .class(type: CalendarPagingCell.self)+ pagingViewController.register(CalendarPagingCell.self, for: CalendarItem.self)
โก๏ธ Updated naming of data sources
โก๏ธ As well as removing generics from the data sources, the naming has also been updated to be a bit more Swift-y.
protocol PagingViewControllerDataSource: class {- func numberOfViewControllers\<T\>(in pagingViewController: PagingViewController\<T\>) -\> Int+ func numberOfViewControllers(in pagingViewController: PagingViewController) -\> Int- func pagingViewController\<T\>(\_ pagingViewController: PagingViewController\<T\>, viewControllerForIndex index: Int) -\> UIViewController+ func pagingViewController(\_: PagingViewController, viewControllerAt index: Int) -\> UIViewController- func pagingViewController\<T\>(\_ pagingViewController: PagingViewController\<T\>, pagingItemForIndex index: Int) -\> T+ func pagingViewController(\_: PagingViewController, pagingItemAt index: Int) -\> PagingItem} protocol PagingViewControllerInfiniteDataSource: class {- func pagingViewController\<T\>(\_ pagingViewController: PagingViewController\<T\>, viewControllerForPagingItem: T) -\> UIViewController+ func pagingViewController(\_: PagingViewController, viewControllerFor pagingItem: PagingItem) -\> UIViewController- func pagingViewController\<T\>(\_ pagingViewController: PagingViewController\<T\>, pagingItemBeforePagingItem: T) -\> T?+ func pagingViewController(\_: PagingViewController, itemBefore pagingItem: PagingItem) -\> PagingItem?- func pagingViewController\<T\>(\_ pagingViewController: PagingViewController\<T\>, pagingItemAfterPagingItem: T) -\> T?+ func pagingViewController(\_ : PagingViewController, itemAfter pagingItem: PagingItem) -\> PagingItem?}
-
v1.7.0 Changes
September 26, 2019 -
v1.6.0 Changes
March 03, 2019 -
v1.5.0 Changes
November 18, 2018 -
v1.4.1 Changes
August 15, 2018- ๐ Fix issue with reloadData causing a crash #230 (thanks @ChrisDunaetz!)
-
v1.4.0 Changes
August 11, 2018- โ Add support for Xcode 10 and Swift 4.2 #228
- โ Add option for registering cells from NIB #227 (thanks @RealBonus!)
-
v1.3.0 Changes
May 19, 2018 -
v1.2.0 Changes
April 15, 2018- โฌ๏ธ Upgrade to Swift 4.1 #171 (thanks @voyager163!)
- Prevent unnecessary view controller initializations #160
- ๐ Fix issues with reloading data #157
- ๐ Fix issue with clearing all items in page view controller (a5759ba)
- ๐ Fix issue where willScrollToItem delegate was not called #173
- ๐ Fix layout bug with cell heights when using width delegate #155