Skip to content

Commit 34f49dc

Browse files
Merge pull request #3 from evgeniymikholap/feature/Swift5
Update to Swift 5
2 parents 605367f + b34d130 commit 34f49dc

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

AttributedStringBuilder.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "AttributedStringBuilder"
3-
s.version = "1.0"
3+
s.version = "1.1"
44
s.summary = "Easy Attributed Strings"
55

66
s.description = <<-DESC
@@ -16,7 +16,7 @@ Attributed String Builder makes it easy to create NSAttributedStrings with a 'sw
1616
s.ios.deployment_target = '9.0'
1717
s.tvos.deployment_target = '9.0'
1818
s.osx.deployment_target = '10.12'
19-
s.swift_version = '4.2'
19+
s.swift_version = '5.0'
2020

2121
s.source_files = 'AttributedStringBuilder/AttributedStringBuilder/*.swift'
2222

AttributedStringBuilder/AttributedStringBuilder.xcodeproj/project.pbxproj

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,22 +101,24 @@
101101
67A6830B1F12109F007154C8 /* Project object */ = {
102102
isa = PBXProject;
103103
attributes = {
104-
LastUpgradeCheck = 1000;
104+
LastUpgradeCheck = 1020;
105105
ORGANIZATIONNAME = "Steve Barnegren";
106106
TargetAttributes = {
107107
67A683131F12109F007154C8 = {
108108
CreatedOnToolsVersion = 8.3;
109-
LastSwiftMigration = 1000;
109+
LastSwiftMigration = 1020;
110110
ProvisioningStyle = Automatic;
111111
};
112112
};
113113
};
114114
buildConfigurationList = 67A6830E1F12109F007154C8 /* Build configuration list for PBXProject "AttributedStringBuilder" */;
115115
compatibilityVersion = "Xcode 3.2";
116-
developmentRegion = English;
116+
developmentRegion = en;
117117
hasScannedForEncodings = 0;
118118
knownRegions = (
119+
English,
119120
en,
121+
Base,
120122
);
121123
mainGroup = 67A6830A1F12109F007154C8;
122124
productRefGroup = 67A683151F12109F007154C8 /* Products */;
@@ -284,7 +286,7 @@
284286
PRODUCT_NAME = "$(TARGET_NAME)";
285287
SKIP_INSTALL = YES;
286288
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
287-
SWIFT_VERSION = 4.2;
289+
SWIFT_VERSION = 5.0;
288290
};
289291
name = Debug;
290292
};
@@ -304,7 +306,7 @@
304306
PRODUCT_BUNDLE_IDENTIFIER = SteveBarnegren.AttributedStringBuilder;
305307
PRODUCT_NAME = "$(TARGET_NAME)";
306308
SKIP_INSTALL = YES;
307-
SWIFT_VERSION = 4.2;
309+
SWIFT_VERSION = 5.0;
308310
};
309311
name = Release;
310312
};

Example/Example.playground/Sources/UIFont+Extensions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import UIKit
33

44
public extension UIFont {
55

6-
public static func printAvailableFonts() {
6+
static func printAvailableFonts() {
77

88
for familyName:String in UIFont.familyNames {
99
print("Family Name: \(familyName)")

0 commit comments

Comments
 (0)