Skip to content

Commit 2a2ded3

Browse files
committed
Upgrading to Swift 5
1 parent a49d117 commit 2a2ded3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Examples/Basic/Basic.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
D90523452217927F00B3B94F /* mystery.svg in Resources */ = {isa = PBXBuildFile; fileRef = D90523442217927F00B3B94F /* mystery.svg */; };
1111
D918D26D22122A7300097C9A /* arc2.svg in Resources */ = {isa = PBXBuildFile; fileRef = D918D26C22122A7300097C9A /* arc2.svg */; };
1212
D91C3E43224ED9A4001BCDAE /* gradient-gratification.svg in Resources */ = {isa = PBXBuildFile; fileRef = D91C3E42224ED9A4001BCDAE /* gradient-gratification.svg */; };
13-
D945F5AD225241A100FAAAC4 /* blend.svg in Resources */ = {isa = PBXBuildFile; fileRef = D945F5AC225241A100FAAAC4 /* blend.svg */; };
1413
D945F5AA225220F900FAAAC4 /* mask-composite-2.svg in Resources */ = {isa = PBXBuildFile; fileRef = D945F5A8225220F900FAAAC4 /* mask-composite-2.svg */; };
1514
D945F5AB225220F900FAAAC4 /* mask-composite-3.svg in Resources */ = {isa = PBXBuildFile; fileRef = D945F5A9225220F900FAAAC4 /* mask-composite-3.svg */; };
15+
D945F5AD225241A100FAAAC4 /* blend.svg in Resources */ = {isa = PBXBuildFile; fileRef = D945F5AC225241A100FAAAC4 /* blend.svg */; };
1616
D9494F44224C846D0015ACE1 /* thats-no-moon.svg in Resources */ = {isa = PBXBuildFile; fileRef = D9494F43224C846D0015ACE1 /* thats-no-moon.svg */; };
1717
D9494F46224C99950015ACE1 /* gradient.svg in Resources */ = {isa = PBXBuildFile; fileRef = D9494F45224C99950015ACE1 /* gradient.svg */; };
1818
D956E1B122103A0C00C5ADA2 /* identity.svg in Resources */ = {isa = PBXBuildFile; fileRef = D956E1B022103A0C00C5ADA2 /* identity.svg */; };
@@ -57,9 +57,9 @@
5757
D90523442217927F00B3B94F /* mystery.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = mystery.svg; sourceTree = "<group>"; };
5858
D918D26C22122A7300097C9A /* arc2.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = arc2.svg; sourceTree = "<group>"; };
5959
D91C3E42224ED9A4001BCDAE /* gradient-gratification.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = "gradient-gratification.svg"; sourceTree = "<group>"; };
60-
D945F5AC225241A100FAAAC4 /* blend.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = blend.svg; sourceTree = "<group>"; };
6160
D945F5A8225220F900FAAAC4 /* mask-composite-2.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = "mask-composite-2.svg"; sourceTree = "<group>"; };
6261
D945F5A9225220F900FAAAC4 /* mask-composite-3.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = "mask-composite-3.svg"; sourceTree = "<group>"; };
62+
D945F5AC225241A100FAAAC4 /* blend.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = blend.svg; sourceTree = "<group>"; };
6363
D9494F43224C846D0015ACE1 /* thats-no-moon.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = "thats-no-moon.svg"; sourceTree = "<group>"; };
6464
D9494F45224C99950015ACE1 /* gradient.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = gradient.svg; sourceTree = "<group>"; };
6565
D956E1B022103A0C00C5ADA2 /* identity.svg */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = identity.svg; sourceTree = "<group>"; };
@@ -344,6 +344,7 @@
344344
SDKROOT = iphoneos;
345345
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
346346
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
347+
SWIFT_VERSION = 5.0;
347348
};
348349
name = Debug;
349350
};
@@ -398,6 +399,7 @@
398399
SDKROOT = iphoneos;
399400
SWIFT_COMPILATION_MODE = wholemodule;
400401
SWIFT_OPTIMIZATION_LEVEL = "-O";
402+
SWIFT_VERSION = 5.0;
401403
VALIDATE_PRODUCT = YES;
402404
};
403405
name = Release;
@@ -415,7 +417,6 @@
415417
);
416418
PRODUCT_BUNDLE_IDENTIFIER = com.whiloop.Basic;
417419
PRODUCT_NAME = "$(TARGET_NAME)";
418-
SWIFT_VERSION = 4.2;
419420
TARGETED_DEVICE_FAMILY = "1,2";
420421
};
421422
name = Debug;
@@ -433,7 +434,6 @@
433434
);
434435
PRODUCT_BUNDLE_IDENTIFIER = com.whiloop.Basic;
435436
PRODUCT_NAME = "$(TARGET_NAME)";
436-
SWIFT_VERSION = 4.2;
437437
TARGETED_DEVICE_FAMILY = "1,2";
438438
};
439439
name = Release;

Examples/Basic/Sources/ViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class ViewController: UIViewController {
6565

6666
override func loadView() {
6767
let imageView = UIImageView(frame: UIScreen.main.bounds)
68-
imageView.image = UIImage(svgNamed: "mask-composite-3.svg")
68+
imageView.image = UIImage(svgNamed: "thats-no-moon.svg")
6969
imageView.contentMode = .scaleAspectFit
7070
imageView.backgroundColor = .white
7171
self.view = imageView

0 commit comments

Comments
 (0)