From 555c2c1a6bea5cd937a9c0d0e85f968f405c1a53 Mon Sep 17 00:00:00 2001 From: LEE <18611401994@163.com> Date: Tue, 12 Jul 2022 11:02:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E6=94=BEAttachment=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AttributedString.podspec | 2 +- Sources/Attachment.swift | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/AttributedString.podspec b/AttributedString.podspec index d6e01ed..803916f 100644 --- a/AttributedString.podspec +++ b/AttributedString.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "AttributedString" -s.version = "3.3.1" +s.version = "3.3.2" s.summary = "基于Swift字符串插值快速构建你想要的富文本, 支持点击按住等事件获取, 支持多种类型过滤" s.homepage = "https://github.com/lixiang1994/AttributedString" diff --git a/Sources/Attachment.swift b/Sources/Attachment.swift index fac49fd..1bc8598 100644 --- a/Sources/Attachment.swift +++ b/Sources/Attachment.swift @@ -53,7 +53,7 @@ extension ASAttributedString { public typealias Style = Attachment.Style - let style: Style + public let style: Style public static func image(_ image: Image, _ style: Style = .original()) -> ImageAttachment { return .init(image, style) @@ -109,8 +109,8 @@ extension ASAttributedString { public static var Loader: AsyncImageAttachmentLoader.Type = AsyncImageAttachmentURLSessionLoader.self - let url: URL? - let placeholder: Image? + public let url: URL? + public let placeholder: Image? private weak var textContainer: NSTextContainer? @@ -172,8 +172,8 @@ extension ASAttributedString { public typealias Style = Attachment.Style - let view: UIView - let style: Style + public let view: UIView + public let style: Style /// Custom View (Only support UITextView) /// - Parameter view: 视图