7 Commits

Author SHA1 Message Date
superpeteblaze f9455456b1 Bump project 2017-12-05 18:03:04 +00:00
Pete Smith 8f13b5ce91 Merge pull request #20 from superpeteblaze/psmith/CellTooLargeBug
Fix cell too large
2017-12-05 17:58:19 +00:00
superpeteblaze ced108bee8 Fix cell too large 2017-12-05 17:57:46 +00:00
superpeteblaze 215aadd502 Bump version, update podspec 2017-11-08 14:16:05 +00:00
Pete Smith e8ec9ebc74 Merge pull request #19 from cs-joao-souza/master
Variable modifications
2017-11-08 14:13:50 +00:00
João Pedro 8157c8d465 Variable modifications
Change currentCenterCell to open var;
Change currentCenterCellIndex to open var;
2017-11-06 13:44:44 -02:00
Pete Smith f658f94c69 Fix v2.0 release 2017-11-02 09:42:34 +07:00
5 changed files with 6 additions and 6 deletions
@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.0</string>
<string>2.0.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
+1 -1
View File
@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>2.0</string>
<string>2.0.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
+1 -1
View File
@@ -8,7 +8,7 @@
Pod::Spec.new do |s|
s.name = 'ScalingCarousel'
s.version = '2.0'
s.version = '2.0.3'
s.summary = 'A super simple carousel view with scaling transitions written in Swift'
s.description = <<-DESC
@@ -59,7 +59,7 @@ open class ScalingCarouselCell: UICollectionViewCell {
let mainView = mainView else { return }
// Get our absolute origin value
let originX = superview.convert(frame, to: nil).origin.x
let originX = superview.convert(frame, to: superview.superview).origin.x
// Calculate our actual origin.x value using our inset
let originXActual = originX - carouselInset
@@ -31,7 +31,7 @@ open class ScalingCarouselView: UICollectionView {
}
/// Returns the current center cell of the carousel if it can be calculated
public var currentCenterCell: UICollectionViewCell? {
open var currentCenterCell: UICollectionViewCell? {
let lowerBound = inset - 20
let upperBound = inset + 20
@@ -50,7 +50,7 @@ open class ScalingCarouselView: UICollectionView {
}
/// Returns the IndexPath of the current center cell if it can be calculated
public var currentCenterCellIndex: IndexPath? {
open var currentCenterCellIndex: IndexPath? {
guard let currentCenterCell = self.currentCenterCell else { return nil }
return indexPath(for: currentCenterCell)