Skip to content

Commit

Permalink
Merge pull request #18 from hslightnin/master
Browse files Browse the repository at this point in the history
Swift 4.2 conversion

Closes #17
  • Loading branch information
Christopher Mühl authored Oct 18, 2018
2 parents 440118a + 2c0fbf8 commit b790b07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions AwesomeEnum.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@
TargetAttributes = {
15116D1720761BAD00BC08D3 = {
CreatedOnToolsVersion = 9.3;
LastSwiftMigration = 1000;
};
15116D4320761EBF00BC08D3 = {
CreatedOnToolsVersion = 9.3;
Expand Down Expand Up @@ -664,7 +665,7 @@
PRODUCT_BUNDLE_IDENTIFIER = io.liveui.AwesomeEnum;
PRODUCT_NAME = Awesome;
SKIP_INSTALL = YES;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
Expand All @@ -689,7 +690,7 @@
PRODUCT_BUNDLE_IDENTIFIER = io.liveui.AwesomeEnum;
PRODUCT_NAME = Awesome;
SKIP_INSTALL = YES;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
Expand Down
2 changes: 1 addition & 1 deletion Classes/Extensions/NSAttributedString+Awesome.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public extension NSAttributedString {

let paragraph = NSMutableParagraphStyle()
paragraph.alignment = .center
let attributes = [NSAttributedStringKey.font: font, .foregroundColor: color, .backgroundColor: backgroundColor, .paragraphStyle: paragraph]
let attributes = [NSAttributedString.Key.font: font, .foregroundColor: color, .backgroundColor: backgroundColor, .paragraphStyle: paragraph]

let attributedString = NSAttributedString(string: icon.code, attributes: attributes)

Expand Down

0 comments on commit b790b07

Please sign in to comment.