All Versions
36
Latest Version
Avg Release Cycle
65 days
Latest Release
253 days ago

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 initialize PagingViewController directly with an array of view controllers.

    -FixedPagingViewController(viewControllers: viewControllers)+PagingViewController(viewControllers: viewControllers)
    

    โœ‚ Removed generics (#285)

    ๐Ÿšš PagingViewController is not longer generic on the PagingItem 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 the PagingViewControllerDelegate and into a separate protocol called PagingViewControllerSizeDelegate. You now need to set the sizeDelegate property on PagingViewController:

    -pagingViewController.delegate = self+pagingViewController.sizeDelegate = self
    

    Replaced menuItemSource with register(cellClass:)

    ๐Ÿšš The menuItemSource property for customizing the cell type has been removed. Instead you can customize the cell type for a given PagingItem by using register(cellClass:) and register(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 initialize PagingViewController directly with an array of view controllers.

    -FixedPagingViewController(viewControllers: viewControllers)+PagingViewController(viewControllers: viewControllers)
    

    โœ‚ Removed generics (#285)

    ๐Ÿšš PagingViewController is not longer generic on the PagingItem 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 the PagingViewControllerDelegate and into a separate protocol called PagingViewControllerSizeDelegate. You now need to set the sizeDelegate property on PagingViewController:

    -pagingViewController.delegate = self+pagingViewController.sizeDelegate = self
    

    Replaced menuItemSource with register(cellClass:)

    ๐Ÿšš The menuItemSource property for customizing the cell type has been removed. Instead you can customize the cell type for a given PagingItem by using register(cellClass:) and register(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
    • โšก๏ธ Update to Swift 5 and Xcode 10.2 #339
    • ๐Ÿ›  Fix issue changing selection when view is not visible #371
    • ๐Ÿ›  Fix unbalanced appearance transitions #373
    • ๐Ÿ›  Fix issues when compiled as SPM dependency (Xcode 11) (#386)
    • โž• Add support for Accio as dependency manager #345
  • v1.6.0 Changes

    March 03, 2019
    • Forward appearance methods from EMPageViewController #306
    • ๐Ÿ›  Fix indicator insets with only one item #307
    • โž• Add method for reloading menu #312
  • v1.5.0 Changes

    November 18, 2018
    • Include vertical insets for indicator view #271
    • โœ‚ Remove development team from Parchment target #280
    • โšก๏ธ Update indicator and border views when changing options #245
    • ๐Ÿ›  Fix issue with width delegate not being called #244
    • ๐Ÿ›  Fix issue with invalidating collection view layout #240
  • v1.4.1 Changes

    August 15, 2018
  • 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
    • โž• Add version checks to support Swift >=3.2 #190, #184
    • ๐Ÿ›  Fix issue with indicator/border class was not registered #191
    • ๐Ÿ›  Fix issue with reloading data when view controllers did not change #201
  • 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