Skip to content

Commit

Permalink
Merge pull request #40 from gregpardo/master
Browse files Browse the repository at this point in the history
A couple final Swift 4 fixes (#39)
  • Loading branch information
Nicholas Maccharoli authored Sep 21, 2017
2 parents 7248a2d + 1b83fca commit 8c6f616
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Attributed.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_SWIFT3_OBJC_INFERENCE = On;
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.0;
};
name = Debug;
Expand All @@ -425,7 +425,7 @@
PRODUCT_BUNDLE_IDENTIFIER = attributed.Attributed;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_SWIFT3_OBJC_INFERENCE = On;
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.0;
};
name = Release;
Expand Down
2 changes: 1 addition & 1 deletion Attributed/Attributes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public struct Attributes {
}

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

Expand Down

0 comments on commit 8c6f616

Please sign in to comment.