Skip to content

Commit

Permalink
Merge branch 'release/3.7.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
malcommac committed Jul 7, 2020
2 parents d2fd671 + d031892 commit 9bf4b5a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ public extension AttributedString {
attachment.image = image.withRenderingMode(.alwaysOriginal)
}
} else {
attachment = NSTextAttachment(data: image.pngData()!, ofType: "png")
// It does not work on iOS12, return empty set.s
// attachment = NSTextAttachment(data: image.pngData()!, ofType: "png")
attachment = NSTextAttachment()
attachment.image = image.withRenderingMode(.alwaysOriginal)
}
#endif

Expand Down
2 changes: 1 addition & 1 deletion SwiftRichString.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "SwiftRichString"
s.version = "3.7.1"
s.version = "3.7.2"
s.summary = "Elegant Strings & Attributed Strings Toolkit for Swift"
s.description = <<-DESC
SwiftRichString is the best toolkit to work easily with Strings and Attributed Strings.
Expand Down
4 changes: 2 additions & 2 deletions SwiftRichString.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1640,7 +1640,7 @@
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.11;
MARKETING_VERSION = 3.7.1;
MARKETING_VERSION = 3.7.2;
ONLY_ACTIVE_ARCH = NO;
PRODUCT_BUNDLE_IDENTIFIER = "com.SwiftRichString.SwiftRichString-iOS";
PRODUCT_NAME = SwiftRichString;
Expand All @@ -1666,7 +1666,7 @@
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.11;
MARKETING_VERSION = 3.7.1;
MARKETING_VERSION = 3.7.2;
PRODUCT_BUNDLE_IDENTIFIER = "com.SwiftRichString.SwiftRichString-iOS";
PRODUCT_NAME = SwiftRichString;
SKIP_INSTALL = YES;
Expand Down

0 comments on commit 9bf4b5a

Please sign in to comment.