From 64ebfa66682c5fd071f55659ff6fca8ac0b2dd4a Mon Sep 17 00:00:00 2001 From: Jack Date: Tue, 25 Apr 2017 11:26:20 +0800 Subject: [PATCH 1/4] Autolayout is used in conjunction with CATransform3D --- iCarousel/iCarousel.m | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/iCarousel/iCarousel.m b/iCarousel/iCarousel.m index 485a878bb8..57162ac7f1 100644 --- a/iCarousel/iCarousel.m +++ b/iCarousel/iCarousel.m @@ -863,8 +863,13 @@ - (void)transformItemView:(UIView *)view atIndex:(NSInteger)index CATransform3D transform = [self transformForItemViewWithOffset:offset]; //transform view - view.superview.layer.transform = transform; - + CABasicAnimation *basicAnimation = [CABasicAnimation animationWithKeyPath:@"transform"]; + basicAnimation.fillMode = kCAFillModeForwards; + basicAnimation.removedOnCompletion = NO; + basicAnimation.duration = 0.15; + basicAnimation.toValue = [NSValue valueWithCATransform3D:transform]; + [view.superview.layer addAnimation:basicAnimation forKey:nil]; + //backface culling BOOL showBackfaces = view.layer.doubleSided; if (showBackfaces) From a5166db40233567207c1287e96dc1777d349b01f Mon Sep 17 00:00:00 2001 From: Jack Date: Wed, 26 Apr 2017 13:51:02 +0800 Subject: [PATCH 2/4] update --- iCarousel.podspec.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/iCarousel.podspec.json b/iCarousel.podspec.json index 382ab73678..618663f121 100644 --- a/iCarousel.podspec.json +++ b/iCarousel.podspec.json @@ -1,6 +1,6 @@ { - "name": "iCarousel", - "version": "1.8.3", + "name": "iCarousel-CATransform3D", + "version": "1.0.0", "license": { "type": "zlib", "file": "LICENCE.md" @@ -11,8 +11,8 @@ "Nick Lockwood": "support@charcoaldesign.co.uk" }, "source": { - "git": "https://github.com/nicklockwood/iCarousel.git", - "tag": "1.8.3" + "git": "git@github.com:xhzengAIB/iCarousel.git", + "tag": "1.0.0" }, "source_files": "iCarousel/iCarousel.{h,m}", "requires_arc": true, From 15cb551cdf88aa68b428a5fbbc0762035724935a Mon Sep 17 00:00:00 2001 From: Jack Date: Wed, 26 Apr 2017 13:53:54 +0800 Subject: [PATCH 3/4] update --- iCarousel.podspec.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iCarousel.podspec.json b/iCarousel.podspec.json index 618663f121..860e2c0742 100644 --- a/iCarousel.podspec.json +++ b/iCarousel.podspec.json @@ -11,7 +11,7 @@ "Nick Lockwood": "support@charcoaldesign.co.uk" }, "source": { - "git": "git@github.com:xhzengAIB/iCarousel.git", + "git": "https://github.com/xhzengAIB/iCarousel.git", "tag": "1.0.0" }, "source_files": "iCarousel/iCarousel.{h,m}", From 38c553566241f38e9e21522bb88d02cb56ece837 Mon Sep 17 00:00:00 2001 From: Jack Date: Wed, 26 Apr 2017 13:54:53 +0800 Subject: [PATCH 4/4] update --- iCarousel.podspec.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iCarousel.podspec.json b/iCarousel.podspec.json index 860e2c0742..4090405c5d 100644 --- a/iCarousel.podspec.json +++ b/iCarousel.podspec.json @@ -1,6 +1,6 @@ { "name": "iCarousel-CATransform3D", - "version": "1.0.0", + "version": "1.0.1", "license": { "type": "zlib", "file": "LICENCE.md" @@ -12,7 +12,7 @@ }, "source": { "git": "https://github.com/xhzengAIB/iCarousel.git", - "tag": "1.0.0" + "tag": "1.0.1" }, "source_files": "iCarousel/iCarousel.{h,m}", "requires_arc": true,