Skip to content

Commit 555c2c1

Browse files
committed
开放Attachment中的属性
1 parent 5246643 commit 555c2c1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

AttributedString.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = "AttributedString"
4-
s.version = "3.3.1"
4+
s.version = "3.3.2"
55
s.summary = "基于Swift字符串插值快速构建你想要的富文本, 支持点击按住等事件获取, 支持多种类型过滤"
66

77
s.homepage = "https://github.com/lixiang1994/AttributedString"

Sources/Attachment.swift

+5-5
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ extension ASAttributedString {
5353

5454
public typealias Style = Attachment.Style
5555

56-
let style: Style
56+
public let style: Style
5757

5858
public static func image(_ image: Image, _ style: Style = .original()) -> ImageAttachment {
5959
return .init(image, style)
@@ -109,8 +109,8 @@ extension ASAttributedString {
109109

110110
public static var Loader: AsyncImageAttachmentLoader.Type = AsyncImageAttachmentURLSessionLoader.self
111111

112-
let url: URL?
113-
let placeholder: Image?
112+
public let url: URL?
113+
public let placeholder: Image?
114114

115115
private weak var textContainer: NSTextContainer?
116116

@@ -172,8 +172,8 @@ extension ASAttributedString {
172172

173173
public typealias Style = Attachment.Style
174174

175-
let view: UIView
176-
let style: Style
175+
public let view: UIView
176+
public let style: Style
177177

178178
/// Custom View (Only support UITextView)
179179
/// - Parameter view: 视图

0 commit comments

Comments
 (0)