Skip to content

Commit 7f44a9e

Browse files
committed
Update to Swift 5.
1 parent 5b733ad commit 7f44a9e

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

Example/PinLayoutSample.xcodeproj/project.pbxproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@
510510
TargetAttributes = {
511511
249EFE3E1E64FAFE00165E39 = {
512512
CreatedOnToolsVersion = 8.2.1;
513-
LastSwiftMigration = 1000;
513+
LastSwiftMigration = 1030;
514514
ProvisioningStyle = Automatic;
515515
};
516516
};
@@ -845,7 +845,7 @@
845845
PRODUCT_NAME = "$(TARGET_NAME)";
846846
SWIFT_OBJC_BRIDGING_HEADER = "PinLayoutSample/UI/Examples/PinLayoutSample-Bridging-Header.h";
847847
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
848-
SWIFT_VERSION = 4.2;
848+
SWIFT_VERSION = 5.0;
849849
};
850850
name = Debug;
851851
};
@@ -862,7 +862,7 @@
862862
PRODUCT_BUNDLE_IDENTIFIER = com.layoutbox.PinLayoutSample;
863863
PRODUCT_NAME = "$(TARGET_NAME)";
864864
SWIFT_OBJC_BRIDGING_HEADER = "PinLayoutSample/UI/Examples/PinLayoutSample-Bridging-Header.h";
865-
SWIFT_VERSION = 4.2;
865+
SWIFT_VERSION = 5.0;
866866
};
867867
name = Release;
868868
};

PinLayout.xcodeproj/project.pbxproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -651,13 +651,13 @@
651651
};
652652
249EFE791E64FB4C00165E39 = {
653653
CreatedOnToolsVersion = 8.2.1;
654-
LastSwiftMigration = 1000;
654+
LastSwiftMigration = 1030;
655655
ProvisioningStyle = Automatic;
656656
};
657657
249EFE821E64FB4C00165E39 = {
658658
CreatedOnToolsVersion = 8.2.1;
659659
DevelopmentTeam = 4Q596JWQC5;
660-
LastSwiftMigration = 1000;
660+
LastSwiftMigration = 1030;
661661
ProvisioningStyle = Automatic;
662662
};
663663
DF1A5D1C2084C94700725EF5 = {
@@ -1247,7 +1247,7 @@
12471247
PRODUCT_NAME = PinLayout;
12481248
SKIP_INSTALL = YES;
12491249
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
1250-
SWIFT_VERSION = 4.2;
1250+
SWIFT_VERSION = 5.0;
12511251
};
12521252
name = Debug;
12531253
};
@@ -1267,7 +1267,7 @@
12671267
PRODUCT_BUNDLE_IDENTIFIER = "com.mirego.PinLayout-iOS";
12681268
PRODUCT_NAME = PinLayout;
12691269
SKIP_INSTALL = YES;
1270-
SWIFT_VERSION = 4.2;
1270+
SWIFT_VERSION = 5.0;
12711271
};
12721272
name = Release;
12731273
};
@@ -1282,7 +1282,7 @@
12821282
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
12831283
PRODUCT_BUNDLE_IDENTIFIER = com.mirego.PinLayoutTests;
12841284
PRODUCT_NAME = "$(TARGET_NAME)";
1285-
SWIFT_VERSION = 4.2;
1285+
SWIFT_VERSION = 5.0;
12861286
};
12871287
name = Debug;
12881288
};
@@ -1297,7 +1297,7 @@
12971297
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
12981298
PRODUCT_BUNDLE_IDENTIFIER = com.mirego.PinLayoutTests;
12991299
PRODUCT_NAME = "$(TARGET_NAME)";
1300-
SWIFT_VERSION = 4.2;
1300+
SWIFT_VERSION = 5.0;
13011301
};
13021302
name = Release;
13031303
};

Tests/UIImage+Color.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import UIKit
2121

2222
public extension UIImage {
23-
public convenience init?(color: UIColor, size: CGSize = CGSize(width: 1, height: 1)) {
23+
convenience init?(color: UIColor, size: CGSize = CGSize(width: 1, height: 1)) {
2424
let rect = CGRect(origin: .zero, size: size)
2525
UIGraphicsBeginImageContextWithOptions(rect.size, false, 0.0)
2626
color.setFill()

0 commit comments

Comments
 (0)