Skip to content

Commit 8c6f616

Browse files
author
Nicholas Maccharoli
authored
Merge pull request #40 from gregpardo/master
A couple final Swift 4 fixes (#39)
2 parents 7248a2d + 1b83fca commit 8c6f616

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Attributed.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@
405405
PRODUCT_NAME = "$(TARGET_NAME)";
406406
SKIP_INSTALL = YES;
407407
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
408-
SWIFT_SWIFT3_OBJC_INFERENCE = On;
408+
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
409409
SWIFT_VERSION = 4.0;
410410
};
411411
name = Debug;
@@ -425,7 +425,7 @@
425425
PRODUCT_BUNDLE_IDENTIFIER = attributed.Attributed;
426426
PRODUCT_NAME = "$(TARGET_NAME)";
427427
SKIP_INSTALL = YES;
428-
SWIFT_SWIFT3_OBJC_INFERENCE = On;
428+
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
429429
SWIFT_VERSION = 4.0;
430430
};
431431
name = Release;

Attributed/Attributes.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public struct Attributes {
8989
}
9090

9191
public func baselineOffset(_ offset: NSNumber) -> Attributes {
92-
return self + Attributes(dictionary: [NSBaselineOffsetAttributeName: offset])
92+
return self + Attributes(dictionary: [NSAttributedStringKey.baselineOffset: offset])
9393
}
9494
}
9595

0 commit comments

Comments
 (0)