Skip to content

Commit

Permalink
[Fix] nstextview image
Browse files Browse the repository at this point in the history
  • Loading branch information
zhgchgli0718 committed Mar 9, 2023
1 parent 787d215 commit b5611cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Sources/ZNSTextAttachment/ZResizableNSTextAttachment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion scripts/ZNSTextAttachment.podspec
Original file line number Diff line number Diff line change
@@ -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" }
Expand Down

0 comments on commit b5611cc

Please sign in to comment.