diff --git a/Sources/ZNSTextAttachment/ZResizableNSTextAttachment.swift b/Sources/ZNSTextAttachment/ZResizableNSTextAttachment.swift index 1bf94eb..5debdd7 100644 --- a/Sources/ZNSTextAttachment/ZResizableNSTextAttachment.swift +++ b/Sources/ZNSTextAttachment/ZResizableNSTextAttachment.swift @@ -25,6 +25,8 @@ public class ZResizableNSTextAttachment: NSTextAttachment { self.fixedHeight = fixedHeight super.init(data: data, ofType: type) + + self.attachmentCell = NSTextAttachmentCell.init(imageCell: NSImage(data: data)) } required init?(coder: NSCoder) { diff --git a/scripts/ZNSTextAttachment.podspec b/scripts/ZNSTextAttachment.podspec index e5838a8..964fa78 100644 --- a/scripts/ZNSTextAttachment.podspec +++ b/scripts/ZNSTextAttachment.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "ZNSTextAttachment" - s.version = "1.1.3" + s.version = "1.1.5" s.summary = "ZNSTextAttachment enables NSTextAttachment to download images from remote URLs." s.homepage = "https://github.com/ZhgChgLi/ZNSTextAttachment" s.license = { :type => "MIT", :file => "LICENSE" }