Skip to content

Commit

Permalink
Fix isStackOnBottom and stackedCardsCount not working on 2.3.0 (#79)
Browse files Browse the repository at this point in the history
Co-authored-by: Stefan Haider <stefan.haider@upstream-mobility.at>
  • Loading branch information
stfnhdr and Stefan Haider authored Jan 3, 2021
1 parent 4dfd600 commit 39debec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/VerticalCardSwiperFlowLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ internal class VerticalCardSwiperFlowLayout: UICollectionViewFlowLayout {
var t = CGAffineTransform.identity

let calculatedScale = scale > 0 ? scale : 0
t = t.scaledBy(x: calculatedScale, y: calculatedScale)
t = t.scaledBy(x: calculatedScale, y: 1)
if isStackingEnabled {
t = t.translatedBy(x: 0, y: top * translationScale)
}
Expand Down

0 comments on commit 39debec

Please sign in to comment.