Skip to content

Commit 9bf4b5a

Browse files
committed
Merge branch 'release/3.7.2'
2 parents d2fd671 + d031892 commit 9bf4b5a

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

Sources/SwiftRichString/Extensions/AttributedString+Attachments.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,10 @@ public extension AttributedString {
105105
attachment.image = image.withRenderingMode(.alwaysOriginal)
106106
}
107107
} else {
108-
attachment = NSTextAttachment(data: image.pngData()!, ofType: "png")
108+
// It does not work on iOS12, return empty set.s
109+
// attachment = NSTextAttachment(data: image.pngData()!, ofType: "png")
110+
attachment = NSTextAttachment()
111+
attachment.image = image.withRenderingMode(.alwaysOriginal)
109112
}
110113
#endif
111114

SwiftRichString.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "SwiftRichString"
3-
s.version = "3.7.1"
3+
s.version = "3.7.2"
44
s.summary = "Elegant Strings & Attributed Strings Toolkit for Swift"
55
s.description = <<-DESC
66
SwiftRichString is the best toolkit to work easily with Strings and Attributed Strings.

SwiftRichString.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1640,7 +1640,7 @@
16401640
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
16411641
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
16421642
MACOSX_DEPLOYMENT_TARGET = 10.11;
1643-
MARKETING_VERSION = 3.7.1;
1643+
MARKETING_VERSION = 3.7.2;
16441644
ONLY_ACTIVE_ARCH = NO;
16451645
PRODUCT_BUNDLE_IDENTIFIER = "com.SwiftRichString.SwiftRichString-iOS";
16461646
PRODUCT_NAME = SwiftRichString;
@@ -1666,7 +1666,7 @@
16661666
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
16671667
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
16681668
MACOSX_DEPLOYMENT_TARGET = 10.11;
1669-
MARKETING_VERSION = 3.7.1;
1669+
MARKETING_VERSION = 3.7.2;
16701670
PRODUCT_BUNDLE_IDENTIFIER = "com.SwiftRichString.SwiftRichString-iOS";
16711671
PRODUCT_NAME = SwiftRichString;
16721672
SKIP_INSTALL = YES;

0 commit comments

Comments
 (0)