Releases: zenangst/Spots
Releases · zenangst/Spots
5.1.2
- Removes having scrollviews as lazy properties. #345
- Set
delegate
tonil
in deinit. #345 - Reduces code duplication by introducing
finishReloading
. #344 - Adds an additional methods on
CarouselScrollDelegate
calleddidEndScrollingAnimated
#344 - Makes all carousel scroll view delegate methods optional. #344
- Calles
layoutIfNeeded
insetupSpot
to fix a rendering issue when dynamically loading content into aCarouselSpot
. #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
5.1.0
- Refactors the layout used by
Gridable
objects #341 - Finally fixes the
tvOS
target when installing using Carthage #309 - Improves reliability of
reloadIfNeeded
usingComponents
#342 - Fixes crashes related to obscure frame values in
SpotsScrollView
#340 - Various internal refactoring when preparing views #337
5.0.4
5.0.3
5.0.2
5.0.1
5.0.0
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
topreferredHeaderHeight
onComponentable
- Add missing documentation
- Use new Apple documentation format
- Remove legacy code (
cachedViews
in macOS) - Removes
ListAdapter
andCollectionAdapter
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
toController
- Rename
SpotsCompositeDelegate
toCompositeDelegate
- Rename
SpotsScrollDelegate
toScrollDelegate
- Rename
SpotsCarouselScrollDelegate
toCarouselScrollDelegate
- Rename
SpotComposable
toComposable
- Rename
SpotCache
toStateCache
- Rename
SpotFactory
toFactory
- Rename
SpotsAnimation
toAnimation
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