Skip to content

Commit

Permalink
fix for iOS8
Browse files Browse the repository at this point in the history
  • Loading branch information
Coeur committed Jul 20, 2017
1 parent aff2663 commit 049bd96
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CollectionViewCenteredFlowLayout.podspec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "1.0.0"
version = "1.0.1"

Pod::Spec.new do |s|
s.name = 'CollectionViewCenteredFlowLayout'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ open class CollectionViewCenteredFlowLayout: UICollectionViewFlowLayout {
}
let currentItemAttributes = layoutAttributes.copy() as! UICollectionViewLayoutAttributes
// if the current frame, once stretched to the full row doesn't intersect the previous frame then they are on different rows
if previousFrame != nil && !currentItemAttributes.frame.intersects(CGRect(x: -.infinity, y: previousFrame!.origin.y, width: .infinity, height: previousFrame!.size.height)) {
if previousFrame != nil && !currentItemAttributes.frame.intersects(CGRect(x: -.greatestFiniteMagnitude, y: previousFrame!.origin.y, width: .infinity, height: previousFrame!.size.height)) {
cells.append([])
}
cells[cells.endIndex - 1].append(currentItemAttributes)
Expand Down Expand Up @@ -74,7 +74,7 @@ open class CollectionViewCenteredFlowLayout: UICollectionViewFlowLayout {
}
let currentItemAttributes = layoutAttributes.copy() as! UICollectionViewLayoutAttributes
// if the current frame, once stretched to the full column doesn't intersect the previous frame then they are on different columns
if previousFrame != nil && !currentItemAttributes.frame.intersects(CGRect(x: previousFrame!.origin.x, y: -.infinity, width: previousFrame!.size.width, height: .infinity)) {
if previousFrame != nil && !currentItemAttributes.frame.intersects(CGRect(x: previousFrame!.origin.x, y: -.greatestFiniteMagnitude, width: previousFrame!.size.width, height: .infinity)) {
cells.append([])
}
cells[cells.endIndex - 1].append(currentItemAttributes)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = Example/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.1;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.coeur.ios.CollectionViewCenteredFlowLayout;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -352,6 +353,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = Example/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.1;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.coeur.ios.CollectionViewCenteredFlowLayout;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
4 changes: 2 additions & 2 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- CollectionViewCenteredFlowLayout (1.0.0)
- CollectionViewCenteredFlowLayout (1.0.1)

DEPENDENCIES:
- CollectionViewCenteredFlowLayout (from `..`)
Expand All @@ -9,7 +9,7 @@ EXTERNAL SOURCES:
:path: ".."

SPEC CHECKSUMS:
CollectionViewCenteredFlowLayout: 446fcaeb54eee1abbb902c50caac6b2fdcfe3b83
CollectionViewCenteredFlowLayout: b95892ba0c0d047e348eb0b64c4ee5b52ff0bf9b

PODFILE CHECKSUM: 3fa6777a7a1e9edde6c8ce74fd0509ef089b71f2

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Example/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 049bd96

Please sign in to comment.