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 {
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
Original file line number Diff line number Diff line change 11Pod ::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.
Original file line number Diff line number Diff line change 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;
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;
You can’t perform that action at this time.
0 commit comments