Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion FoldingCell/FoldingCell/FoldingCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@

<p>6) Add this code to your new cell class
&rdquo;` swift
override func animationDuration(itemIndex:NSInteger, type:AnimationType)-&gt; NSTimeInterval {</p>
override func animationDuration(_ itemIndex: NSInteger, type: AnimationType)-&gt; TimeInterval {</p>
<pre class="highlight plaintext"><code> // durations count equal it itemCount
let durations = [0.33, 0.26, 0.26] // timing animation for each view
return durations[itemIndex]
Expand Down
2 changes: 1 addition & 1 deletion docs/undocumented.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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