Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #4 from IdeasOnCanvas/enhancement/xcode10_2
Browse files Browse the repository at this point in the history
Update for Xcode 10.2
  • Loading branch information
Patrick Kladek authored Jun 3, 2019
2 parents 0e6030b + 9e250b0 commit dcdedfe
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Example-Swift/PhotoViewerCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ final class PhotoViewerCoordinator: NYTPhotoViewerDataSource {
@objc
func index(of photo: NYTPhoto) -> Int {
guard let box = photo as? NYTPhotoBox else { return NSNotFound }
return slideshow.index(where: { $0.value.identifier == box.value.identifier }) ?? NSNotFound
return slideshow.firstIndex(where: { $0.value.identifier == box.value.identifier }) ?? NSNotFound
}

@objc
Expand Down
13 changes: 7 additions & 6 deletions NYTPhotoViewer.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0720;
LastUpgradeCheck = 1010;
LastUpgradeCheck = 1020;
ORGANIZATIONNAME = NYTimes;
TargetAttributes = {
111084051C875B5000699670 = {
Expand All @@ -671,7 +671,7 @@
};
11FBDADB1C877BD600018169 = {
CreatedOnToolsVersion = 7.2.1;
LastSwiftMigration = 1010;
LastSwiftMigration = 1020;
};
};
};
Expand All @@ -680,6 +680,7 @@
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
English,
en,
Base,
);
Expand Down Expand Up @@ -959,6 +960,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
Expand Down Expand Up @@ -1016,6 +1018,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
Expand Down Expand Up @@ -1197,8 +1200,7 @@
PRODUCT_BUNDLE_IDENTIFIER = "com.NYTimes.Example-Swift";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
Expand All @@ -1214,8 +1216,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.NYTimes.Example-Swift";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
};
name = Release;
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1010"
LastUpgradeVersion = "1020"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1010"
LastUpgradeVersion = "1020"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down

0 comments on commit dcdedfe

Please sign in to comment.