Skip to content

Commit ac3d03f

Browse files
authored
Merge pull request #4 from jeantimex/swift-2.3
Migrate to swift 2.3.
2 parents 0af7f9f + 1a6aac3 commit ac3d03f

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

ios-swift-collapsible-table-section.xcodeproj/project.pbxproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@
9999
TargetAttributes = {
100100
0A908DEA1CFCAA9200470F33 = {
101101
CreatedOnToolsVersion = 7.3.1;
102+
LastSwiftMigration = 0800;
102103
};
103104
};
104105
};
@@ -260,6 +261,7 @@
260261
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
261262
PRODUCT_BUNDLE_IDENTIFIER = "su.ios-swift-collapsible-table-section";
262263
PRODUCT_NAME = "$(TARGET_NAME)";
264+
SWIFT_VERSION = 2.3;
263265
};
264266
name = Debug;
265267
};
@@ -272,6 +274,7 @@
272274
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
273275
PRODUCT_BUNDLE_IDENTIFIER = "su.ios-swift-collapsible-table-section";
274276
PRODUCT_NAME = "$(TARGET_NAME)";
277+
SWIFT_VERSION = 2.3;
275278
};
276279
name = Release;
277280
};

ios-swift-collapsible-table-section/CollapsibleTableViewController.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,14 @@
99
import UIKit
1010

1111
extension UIView {
12-
func rotate(toValue: CGFloat, duration: CFTimeInterval = 0.2, completionDelegate: AnyObject? = nil) {
12+
func rotate(toValue: CGFloat, duration: CFTimeInterval = 0.2) {
1313
let rotateAnimation = CABasicAnimation(keyPath: "transform.rotation")
14+
1415
rotateAnimation.toValue = toValue
1516
rotateAnimation.duration = duration
1617
rotateAnimation.removedOnCompletion = false
1718
rotateAnimation.fillMode = kCAFillModeForwards
18-
19-
if let delegate: AnyObject = completionDelegate {
20-
rotateAnimation.delegate = delegate
21-
}
19+
2220
self.layer.addAnimation(rotateAnimation, forKey: nil)
2321
}
2422
}

0 commit comments

Comments
 (0)