Skip to content

Commit

Permalink
Merge pull request #12 from noblakit01/swift_4
Browse files Browse the repository at this point in the history
Swift 4
  • Loading branch information
noblakit01 authored Dec 19, 2017
2 parents e84e9b6 + 98f8ef7 commit b1a12ea
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2
4.0
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: objective-c
osx_image: xcode8.3
osx_image: xcode9

before_install:
- pod repo update
Expand Down
9 changes: 7 additions & 2 deletions PhotoCollectionView.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@
ProvisioningStyle = Automatic;
};
OBJ_16 = {
LastSwiftMigration = 0900;
ProvisioningStyle = Manual;
};
};
Expand Down Expand Up @@ -443,7 +444,7 @@
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 4.0;
};
name = Debug;
};
Expand Down Expand Up @@ -490,7 +491,7 @@
PRODUCT_BUNDLE_IDENTIFIER = luantran.PhotoCollectionViewDemo;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos;
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 4.0;
VALIDATE_PRODUCT = YES;
};
name = Release;
Expand Down Expand Up @@ -518,6 +519,8 @@
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
PROVISIONING_PROFILE_SPECIFIER = "";
SKIP_INSTALL = YES;
SWIFT_SWIFT3_OBJC_INFERENCE = On;
SWIFT_VERSION = 4.0;
TARGET_NAME = PhotoCollectionView;
};
name = Debug;
Expand Down Expand Up @@ -545,6 +548,8 @@
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
PROVISIONING_PROFILE_SPECIFIER = "";
SKIP_INSTALL = YES;
SWIFT_SWIFT3_OBJC_INFERENCE = On;
SWIFT_VERSION = 4.0;
TARGET_NAME = PhotoCollectionView;
};
name = Release;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@
"idiom" : "ipad",
"size" : "83.5x83.5",
"scale" : "2x"
},
{
"idiom" : "ios-marketing",
"size" : "1024x1024",
"scale" : "1x"
}
],
"info" : {
Expand Down
2 changes: 1 addition & 1 deletion Sources/PhotoCollectionView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ open class PhotoCollectionView: UIView {
return images[index]
}

func tapPhotoView(sender: UITapGestureRecognizer) {
@objc func tapPhotoView(sender: UITapGestureRecognizer) {
if let tag = sender.view?.tag {
delegate?.photoCollectionView?(self, didSelectImageAt: tag)
}
Expand Down

0 comments on commit b1a12ea

Please sign in to comment.