This repository was archived by the owner on Feb 2, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed
project.xcworkspace/xcshareddata Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 10321032 PRODUCT_NAME = "$(TARGET_NAME)";
10331033 SKIP_INSTALL = YES;
10341034 SWIFT_OPTIMIZATION_LEVEL = "-Onone";
1035- SWIFT_VERSION = 3 .0;
1035+ SWIFT_VERSION = 4 .0;
10361036 };
10371037 name = Debug;
10381038 };
10521052 PRODUCT_NAME = "$(TARGET_NAME)";
10531053 SKIP_INSTALL = YES;
10541054 SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
1055- SWIFT_VERSION = 3 .0;
1055+ SWIFT_VERSION = 4 .0;
10561056 };
10571057 name = Release;
10581058 };
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+ <plist version =" 1.0" >
4+ <dict >
5+ <key >IDEDidComputeMac32BitWarning </key >
6+ <true />
7+ </dict >
8+ </plist >
Original file line number Diff line number Diff line change @@ -13,7 +13,9 @@ public func stringFromHtml(string: String) -> NSAttributedString? {
1313 let data = string. data ( using: String . Encoding. utf8, allowLossyConversion: true )
1414 if let d = data {
1515 let str = try NSAttributedString ( data: d,
16- options: [ NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType] ,
16+ options: [
17+ NSAttributedString . DocumentReadingOptionKey. documentType: NSAttributedString . DocumentType. html,
18+ NSAttributedString . DocumentReadingOptionKey. characterEncoding: String . Encoding. utf8. rawValue] ,
1719 documentAttributes: nil )
1820 return str
1921 }
You can’t perform that action at this time.
0 commit comments