Skip to content

Commit 7de6931

Browse files
committed
#35 Restored linkURL attribute in StyleProtocol
1 parent c65c49e commit 7de6931

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Sources/SwiftRichString/Style/Style.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,13 @@ public class Style: StyleProtocol {
422422

423423
#endif
424424

425+
/// The value of this attribute is an NSURL object (preferred) or an NSString object.
426+
/// The default value of this property is nil, indicating no link.
427+
public var linkURL: URL? {
428+
set { self.set(attribute: newValue, forKey: .link) }
429+
get { return self.get(attributeForKey: .link) }
430+
}
431+
425432
#if os(OSX) || os(iOS) || os(tvOS)
426433

427434
/// Configuration for the number case, also known as "figure style".

0 commit comments

Comments
 (0)