Skip to content

Commit

Permalink
Swift 4 migration
Browse files Browse the repository at this point in the history
  • Loading branch information
mchakravarty committed Oct 9, 2017
1 parent 85bda26 commit 0a25172
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions HaskellSpriteKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@
TargetAttributes = {
E791CF5719FA595A00DECDC4 = {
CreatedOnToolsVersion = 6.1;
LastSwiftMigration = 0810;
LastSwiftMigration = 0900;
};
E791CF6219FA595A00DECDC4 = {
CreatedOnToolsVersion = 6.1;
Expand Down Expand Up @@ -548,7 +548,8 @@
SKIP_INSTALL = YES;
SWIFT_OBJC_BRIDGING_HEADER = "";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 3.0;
SWIFT_SWIFT3_OBJC_INFERENCE = On;
SWIFT_VERSION = 4.0;
};
name = Debug;
};
Expand Down Expand Up @@ -580,7 +581,8 @@
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_OBJC_BRIDGING_HEADER = "";
SWIFT_VERSION = 3.0;
SWIFT_SWIFT3_OBJC_INFERENCE = On;
SWIFT_VERSION = 4.0;
};
name = Release;
};
Expand Down
2 changes: 1 addition & 1 deletion HaskellSpriteKit/FixShapeNode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public extension SKNode {
///
/// This will lose all actions in `SKShapeNode`s.
///
func fix() { children.forEach{ $0.fix() } }
@objc func fix() { children.forEach{ $0.fix() } }
}

public extension SKShapeNode {
Expand Down

0 comments on commit 0a25172

Please sign in to comment.