Skip to content

Releases: zenangst/Spots

5.1.2

28 Oct 09:45
Compare
Choose a tag to compare
  • Removes having scrollviews as lazy properties. #345
  • Set delegate to nil in deinit. #345
  • Reduces code duplication by introducing finishReloading. #344
  • Adds an additional methods on CarouselScrollDelegate called didEndScrollingAnimated #344
  • Makes all carousel scroll view delegate methods optional. #344
  • Calles layoutIfNeeded in setupSpot to fix a rendering issue when dynamically loading content into a CarouselSpot. #344
  • Fixes a bug where an Item could lose it's index if it is not provided in the item parameter. #344

5.1.1

26 Oct 12:04
Compare
Choose a tag to compare
  • Fixes bug with index going missing after calling update #343
  • Improves comparing Component collections #343
  • Improves performance of reloadIfNeeded with JSON #343
  • Removes redundant refreshIndexes call when updating items #343

5.1.0

24 Oct 10:47
Compare
Choose a tag to compare
  • Refactors the layout used by Gridable objects #341
  • Finally fixes the tvOS target when installing using Carthage #309
  • Improves reliability of reloadIfNeeded using Components #342
  • Fixes crashes related to obscure frame values in SpotsScrollView #340
  • Various internal refactoring when preparing views #337

5.0.4

17 Oct 09:49
Compare
Choose a tag to compare
  • Fixes diffing items that use .text property on Item. #336

5.0.3

14 Oct 09:27
Compare
Choose a tag to compare
  • Fixes installing v5.0.0 using Carthage #335

5.0.2

13 Oct 21:40
Compare
Choose a tag to compare
  • Resolves small scrolling issue with CarouselSpot on macOS #334

5.0.1

13 Oct 19:09
Compare
Choose a tag to compare
  • Fixes small height issue when using ListSpot and performing updates #333
  • Removes legacy code related to adapters #333

5.0.0

13 Oct 11:18
Compare
Choose a tag to compare

cover_v6

tl;dr

  • Minor & major bug-fixes and improvements #329

Changes & Improvements

  • Use #keyPath in KVO
  • SpotsScrollView on macOS has been rewritten to use KVO on the frame of its children.
  • Index based methods now us at: as the first label in the function.
  • New convenience method for looking up Spots, you can use spot(at: index) and leave out the type.
  • Rename defaultHeight to preferredHeaderHeight on Componentable
  • Add missing documentation
  • Use new Apple documentation format
  • Remove legacy code (cachedViews in macOS)
  • Removes ListAdapter and CollectionAdapter and gives the power back to the spotable objects.
  • Adds label to spot lookup method. spot(at:ofType:)
  • Improves test coverage.
  • Improves dynamically setting the configure closure on Spotable objects.

Naming

  • Rename SpotsController to Controller
  • Rename SpotsCompositeDelegate to CompositeDelegate
  • Rename SpotsScrollDelegate to ScrollDelegate
  • Rename SpotsCarouselScrollDelegate to CarouselScrollDelegate
  • Rename SpotComposable to Composable
  • Rename SpotCache to StateCache
  • Rename SpotFactory to Factory
  • Rename SpotsAnimation to Animation

API changes

  • Change SpotsDelegate methods
/// Before
func spotsDidChange(_ spots: [Spotable])
func spotDidSelectItem(_ spot: Spotable, item: Item)
/// After
func didChange(spots: [Spotable])
func didSelect(item: Item, in spot: Spotable)
  • Change SpotsScrollDelegate methods
/// Before
func spotDidReachBeginning(_ completion: Completion)
func spotDidReachEnd(_ completion: Completion)
/// After
func didReachBeginning(in scrollView: ScrollableView, completion: Completion)
func didReachEnd(in scrollView: ScrollableView, completion: Completion)
  • Change SpotsCarouselScrollDelegate methods
/// Before
func spotDidScroll(_ spot: Spotable)
func spotDidEndScrolling(_ spot: Spotable, item: Item)
///
func didScroll(in spot: Spotable)
func didEndScrolling(in spot: Spotable, item: Item)
  • Rename methods on SpotsController
/// Before
weak open var spotsDelegate: SpotsDelegate?
weak open var spotsRefreshDelegate: SpotsRefreshDelegate?
lazy open var spotsScrollView: SpotsScrollView 
/// After
weak open var delegate: Delegate?
weak open var refreshDelegate: RefreshDelegate?
lazy open var scrollView: SpotsScrollView 

4.0.2

03 Oct 13:34
Compare
Choose a tag to compare
  • Specifies versions on dependencies in Podspec and Cartfile

4.0.1

03 Oct 09:47
Compare
Choose a tag to compare
  • Fixes performance issues with didSet being called to often on Spotable objects #327