Skip to content

Commit

Permalink
开放Attachment中的属性
Browse files Browse the repository at this point in the history
  • Loading branch information
lixiang1994 committed Jul 12, 2022
1 parent 5246643 commit 555c2c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion AttributedString.podspec
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
10 changes: 5 additions & 5 deletions Sources/Attachment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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?

Expand Down Expand Up @@ -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: 视图
Expand Down

0 comments on commit 555c2c1

Please sign in to comment.