File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
Sources/SwiftRichString/Extensions
SwiftRichString.xcodeproj Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,10 @@ public extension AttributedString {
105
105
attachment. image = image. withRenderingMode ( . alwaysOriginal)
106
106
}
107
107
} 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)
109
112
}
110
113
#endif
111
114
Original file line number Diff line number Diff line change 1
1
Pod ::Spec . new do |s |
2
2
s . name = "SwiftRichString"
3
- s . version = "3.7.1 "
3
+ s . version = "3.7.2 "
4
4
s . summary = "Elegant Strings & Attributed Strings Toolkit for Swift"
5
5
s . description = <<-DESC
6
6
SwiftRichString is the best toolkit to work easily with Strings and Attributed Strings.
Original file line number Diff line number Diff line change 1640
1640
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
1641
1641
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1642
1642
MACOSX_DEPLOYMENT_TARGET = 10.11;
1643
- MARKETING_VERSION = 3.7.1 ;
1643
+ MARKETING_VERSION = 3.7.2 ;
1644
1644
ONLY_ACTIVE_ARCH = NO;
1645
1645
PRODUCT_BUNDLE_IDENTIFIER = "com.SwiftRichString.SwiftRichString-iOS";
1646
1646
PRODUCT_NAME = SwiftRichString;
1666
1666
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
1667
1667
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1668
1668
MACOSX_DEPLOYMENT_TARGET = 10.11;
1669
- MARKETING_VERSION = 3.7.1 ;
1669
+ MARKETING_VERSION = 3.7.2 ;
1670
1670
PRODUCT_BUNDLE_IDENTIFIER = "com.SwiftRichString.SwiftRichString-iOS";
1671
1671
PRODUCT_NAME = SwiftRichString;
1672
1672
SKIP_INSTALL = YES;
You can’t perform that action at this time.
0 commit comments