Skip to content

Commit 17950b7

Browse files
committed
Upgrade to swift 5
1 parent 835d510 commit 17950b7

File tree

3 files changed

+20
-22
lines changed

3 files changed

+20
-22
lines changed

Example/Pods/Pods.xcodeproj/project.pbxproj

+16-19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sources/Extensions/Array+Remove.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ extension Array where Element: Equatable {
1616
/// - returns: The deleted index
1717
@discardableResult
1818
public mutating func remove(_ element: Element) -> Int? {
19-
guard let index = index(of: element) else { return nil }
19+
guard let index = firstIndex(of: element) else { return nil }
2020
remove(at: index)
2121
return index
2222
}

Stella/Stella.xcodeproj/project.pbxproj

+3-2
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@
268268
TargetAttributes = {
269269
9D9F41A92273676E00A4A518 = {
270270
CreatedOnToolsVersion = 10.2.1;
271+
LastSwiftMigration = 1020;
271272
};
272273
9D9F41F122736BCF00A4A518 = {
273274
CreatedOnToolsVersion = 10.2.1;
@@ -515,7 +516,7 @@
515516
PRODUCT_BUNDLE_IDENTIFIER = com.icapps.stella;
516517
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
517518
SKIP_INSTALL = YES;
518-
SWIFT_VERSION = 4.2;
519+
SWIFT_VERSION = 5.0;
519520
TARGETED_DEVICE_FAMILY = "1,2";
520521
};
521522
name = Debug;
@@ -542,7 +543,7 @@
542543
PRODUCT_BUNDLE_IDENTIFIER = com.icapps.stella;
543544
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
544545
SKIP_INSTALL = YES;
545-
SWIFT_VERSION = 4.2;
546+
SWIFT_VERSION = 5.0;
546547
TARGETED_DEVICE_FAMILY = "1,2";
547548
};
548549
name = Release;

0 commit comments

Comments
 (0)