From c130fa465e510b6d1f4cfafae91699900c5e4da1 Mon Sep 17 00:00:00 2001
From: Ozgun
Date: Sat, 4 Jan 2020 04:09:07 +0000
Subject: [PATCH 1/3] Update Readme.md and docs
---
README.md | 2 +-
docs/undocumented.txt | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 0110d84..e35b627 100644
--- a/README.md
+++ b/README.md
@@ -155,7 +155,7 @@ fileprivate struct C {
6) Add this code to your new cell class
``` swift
- override func animationDuration(itemIndex:NSInteger, type:AnimationType)-> NSTimeInterval {
+ override func animationDuration(_ itemIndex: NSInteger, type: AnimationType) -> TimeInterval {
// durations count equal it itemCount
let durations = [0.33, 0.26, 0.26] // timing animation for each view
diff --git a/docs/undocumented.txt b/docs/undocumented.txt
index 375d038..ab9e67d 100644
--- a/docs/undocumented.txt
+++ b/docs/undocumented.txt
@@ -7,6 +7,6 @@ FoldingCell.swift
required public init?(coder aDecoder: NSCoder)
override public func awakeFromNib()
public func isAnimating()->Bool
- public func animationDuration(itemIndex:NSInteger, type:AnimationType)-> NSTimeInterval
+ public func animationDuration(_ itemIndex: NSInteger, type: AnimationType) -> TimeInterval
public class RotatedView: UIView
public class RotatedView : UIView
From 25a33990d52c0f5a00a130b594cb16196144f4a1 Mon Sep 17 00:00:00 2001
From: Ozgun
Date: Sat, 4 Jan 2020 04:09:19 +0000
Subject: [PATCH 2/3] Update docs
---
docs/index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/index.html b/docs/index.html
index 6d69988..0c15c5d 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -176,7 +176,7 @@
6) Add this code to your new cell class
”` swift
- override func animationDuration(itemIndex:NSInteger, type:AnimationType)-> NSTimeInterval {
+ override func animationDuration(_ itemIndex: NSInteger, type: AnimationType)-> TimeInterval {
// durations count equal it itemCount
let durations = [0.33, 0.26, 0.26] // timing animation for each view
return durations[itemIndex]
From f413d0d9ab7e2f6ae2fceb6ca28143fa4d9978cc Mon Sep 17 00:00:00 2001
From: Ozgun
Date: Sat, 4 Jan 2020 04:09:34 +0000
Subject: [PATCH 3/3] Update Fatal Error message.
---
FoldingCell/FoldingCell/FoldingCell.swift | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/FoldingCell/FoldingCell/FoldingCell.swift b/FoldingCell/FoldingCell/FoldingCell.swift
index 7da21f5..8e291ed 100644
--- a/FoldingCell/FoldingCell/FoldingCell.swift
+++ b/FoldingCell/FoldingCell/FoldingCell.swift
@@ -365,7 +365,7 @@ open class FoldingCell: UITableViewCell {
configureAnimationItems(.close)
if durations.count < animationItemViews.count {
- fatalError("wrong override func animationDuration(itemIndex:NSInteger, type:AnimationType)-> NSTimeInterval")
+ fatalError("wrong override func animationDuration(_ itemIndex: NSInteger, type :AnimationType) -> TimeInterval")
}
for index in 0 ..< animationItemViews.count {
let animatedView = animationItemViews.reversed()[index]