This repository has been archived by the owner on Jun 17, 2023. It is now read-only.
Releases: amirdew/CollectionViewPagingLayout
Releases · amirdew/CollectionViewPagingLayout
1.1.0
1.0.3
1.0.2
1.0.1
SwiftUI Support
New features:
- Add SwiftUI support
ZPosition
can be handled viaCALayer
or layout attribute or both, seeCollectionViewPagingLayout.zPositionHandler
ViewAnimator
: You can set the animation duration or implement your custom animator.- You can use the predefined layout options using an enum. for instance,
ScaleTransformViewOptions.Layout.coverFlow
SnapshotTransformView.canReuse(snapshot:)
You can define when the existing snapshots invalidate.
Changes:
- By default,
zIndex
will apply to the attribute and the CALayer, you can change it usingCollectionViewPagingLayout.zPositionHandler
configureTapOnCollectionView
anddidSelectItemAt
methods removed. You can use the built-in collectionview delegate instead!- Fix a problem: a page blinks before the transform effects apply on it, to fix it the attributes have alpha=0 by default before the cell is loaded. You can change it by setting "transparentAttributeWhenCellNotLoaded" to
false
- An bounds observer added for the collection view so, you don't need to call
"invalidateLayout"
on"viewDidLayoutSubviews"
- If you are on page 1 and call
setCurrentPage(4)
. the delegate method only gets called for page 4. previously, it was 2,3 and 4 ScaleTransformView.blurHost
renamed toScaleTransformView.scaleBlurHost
StackTransformView.blurHost
renamed toStackTransformView.stackBlurHost
SnapshotTransformView.identifier
renamed toSnapshotTransformView.snapshotIdentifier
- Change default implementation of
snapshotIdentifier
to considercontentOffset
of a possible scrollview inside a page
0.4.1
0.4.0
0.3.0
- Breaking change: use
minTranslateRatios
andmaxTranslateRatios
instead ofminTranslates
andmaxTranslates
forScaleTransformView
, it helps us to use the library on different screen sizes without changing the options,translateRatio
is also works differently:
translateX = progress * translates.x * targetView.width
translateY = progress * translates.y * targetView.height
translateZ = progress * translates.z * targetView.width
// same for min and max
- Layout designer code generator completed
- Fix setCurrentPage related issues
0.2.0
- Introduce new iPad/Mac(Catalyst) app for designing layouts
- New delegate function
func collectionViewPagingLayout(_ layout: CollectionViewPagingLayout, didSelectItemAt indexPath: IndexPath)
for using thisfunc configureTapOnCollectionView(goToSelectedPage: Bool = false)
needs to be called after assigning layout to the collection view - will be added to the ReadMe - Fix not change current page on animated page change
- Fix zero sections